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
{{ message }}
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
class Car {
startEngine() {
console.log("Engine started!");
}
}
class Ferraro extends Car {
static myStaticProp = 21;
logStatic() {
console.log(this.myStaticProp);
}
}
var car1 = new Ferraro();
car1.logStatic();
I compiled it via babel with es2015 and stage-0. When I run the resulting code, the last line echoes undefined.
The text was updated successfully, but these errors were encountered:
Hey there,
I tried the following snippet:
I compiled it via babel with es2015 and stage-0. When I run the resulting code, the last line echoes
undefined
.The text was updated successfully, but these errors were encountered: