JAVASCRIPT-DEVELOPER-I Web TestEngine demo

Exit VCEDump JAVASCRIPT-DEVELOPER-I Salesforce Certified JavaScript Developer (JS-Dev-101)
Question 28 of 34
0% complete
Q28 Single choice

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?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in