Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 60 Topic 7 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 60 Topic 7 Discussion

JavaScript-Developer-I Exam Topic 7 Question 60 Discussion:
Question #: 60
Topic #: 7

Refer to the code snippet:

Function getAvailabilityMessage(item) {

If (getAvailability(item)){

Var msg =”Username available”;

}

Return msg;

}

A developer writes this code to return a message to user attempting to register a new

username. If the username is available, variable.

What is the return value of msg hen getAvailabilityMessage (“newUserName” ) is

executed and getAvailability(“newUserName”) returns false?


A.

“Username available”


B.

“newUserName”


C.

“Msg is not defined”


D.

undefined


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.