Quiz · Classes · lesson 4 of 12
Quiz — private at run time
What does the program print?
class A {
private x = 1;
}
class B {
#x = 1;
}
console.log(JSON.stringify(new A()), JSON.stringify(new B()));What does the program print?
class A {
private x = 1;
}
class B {
#x = 1;
}
console.log(JSON.stringify(new A()), JSON.stringify(new B()));