Ad
Code
Diff
  • class Component{
    
      constructor(dom){
        this.dom = dom;
      }
      
      onCreate() {
        return this.dom;
      }
    }
    • function Component(dom) {
    • this.dom = dom;
    • class Component{
    • this.onCreate = function() {
    • constructor(dom){
    • this.dom = dom;
    • }
    • onCreate() {
    • return this.dom;
    • }
    • }