Weekend Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Exam JavaScript-Developer-I All Questions
Exam JavaScript-Developer-I All Questions

View all questions & answers for the JavaScript-Developer-I exam

Salesforce Developer JavaScript-Developer-I Question # 5 Topic 1 Discussion

JavaScript-Developer-I Exam Topic 1 Question 5 Discussion:
Question #: 5
Topic #: 1

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?


A.

1 growl method iscreated for Option A.1000 growl methods are created for Option B.


B.

1000 growl method is created for Option A. 1 growl methods are created for Option B.


C.

1000 growl methods are created regardless of which option is used.


D.

1 growl method is created regardless of whichoption is used.


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.