CRT-600 practice question 26 of 30

A developer has two ways to write a function: Option A: function Monster() { This.growl = () => { Console.log (“Grr!”); } } Option B: function…

Choose your answer, then check it against the explanation.

A developer has two ways to write a function: Option A: function Monster() { This.growl = () => { Console.log (“Grr!”); } } Option B: function Monster() {}; Monster.prototype.growl =() => { console.log(“Grr!”); } After deciding on an option, the developer creates 1000 monster objects. How many growl methods are created with Option A Option B?
Answer options
Question 26 of 30

Keep practicing

Take the free CRT-600 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other CRT-600 practice questions

Scroll to Top