You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: