/* A class is a blue print that you create objects from*/
/* How to create a class in javascript in it's simplest form*/
class Fruit{
}
var apple =new Fruit ();
constructor(){
this.foo = bar
}
const p = new Rectangle(); // ReferenceError
class Rectangle {}
// functions can be called even before they are defined, but classes must be defined before they can be constructed.
class foo {
static myProp = 'bar'
someFunction() {
console.log(this.myProp)
}
}