What will print out when the following code runs? class Cake { constructor(lyr) { this.layers = lyr + 1; } } var result = new Cake(1); console.log(result.layers); 1 2 3 4 When a class extends another class, this is cal...

Markdown supported · ⌘↵ to post
No responses yet.