I'm just learning, so it's possible I'm missing something, or not using classes appropriately, but this seems not to work as expected regarding classes.
Ex:
class Thing {
constructor () {
this.name = 'dude'
}
}
let myThing = new Thing();
results in Reference Error: { Thing is not defined }
Whereas using other consoles, such as Chrome's dev console, this results in the creation of an object as intended.
I'm just learning, so it's possible I'm missing something, or not using classes appropriately, but this seems not to work as expected regarding classes.
Ex:
class Thing { constructor () { this.name = 'dude' } } let myThing = new Thing();
results in Reference Error: { Thing is not defined }
Whereas using other consoles, such as Chrome's dev console, this results in the creation of an object as intended.