Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Javascript Developer I Topic 4 Question 97 Discussion

Actual exam question for Salesforce's Javascript Developer I exam
Question #: 97
Topic #: 4
[All Javascript Developer I Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Hoa
4 days ago
I think the answer is D) undefined.
upvoted 0 times
...

Save Cancel