SquirrelGuy-5 Classes don't work in code.org but a lot of their functionality can be reconstructed by making a function which returns an object:

class Rect {
    constructor(w,h) {
        this.w = w;
        this.h = h;
    }
    area() {
        return this.w * this.h;
    }
}

is basically the same as

function Rect(w,h) {
    var obj = {};
    obj.w = w;
    obj.h = h;
    obj.area = function() { 
        return this.w * this.h;
    }
}

    Lil-Starcast without using money

    Look there are plenty of free hosting sites, I challenged him to make a simple webapp to prove himself using github and render. I'll wait until he responds to that before criticizing him more. Also, anybody can make an AI image generator using an API.

      DragonFireGames
      could it just be
      function rect(w,h){
      this.w = w;
      this.h = h;
      }
      rect.prototype.area = function(){
      return this.w * this.height;
      }

      and
      var something = new rect(50,50); ?

      what i'm saying is i don't really understand why you needed var obj = {};

        ackvonhuelio That works as well, I just prefer using obj. Also, it makes it easier to use getters and setters.

        Object.defineProperty(obj,"prop",{
            get: function(){return "value";},
            set: function(e){console.log(e);},
        });

        Also when it comes to AI, I made a tool which generates websites like this:

        a-recipe-for-pineapple-upside-down-cake-with-ingredients-steps-and-images.html
        115kB

          Chat