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 96 Discussion

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

A developer writes the code below to return a message to a user attempting to register a new username. If the username is available, a variable named nag is declared and assigned a value on line 03.

What is the value of msg when getAvailableabilityMessage (''newUserName'') is executed and get Availability (''newUserName'') returns true?

Show Suggested Answer Hide Answer
Suggested Answer: B, D

Contribute your Thoughts:

Osvaldo
3 days ago
Wait, is 'nag' a variable that's supposed to be returned? This question is a bit confusing. I'm going to go with B. 'newUserName'.
upvoted 0 times
...
Heike
8 days ago
Hmm, I think the answer is C. 'User-name available' since the code declares a variable 'nag' and assigns it a value on line 3, indicating the username is available.
upvoted 0 times
...
Cristy
9 days ago
I'm not sure, but I think it makes sense that the message would be 'User-name available' if the username is available.
upvoted 0 times
...
Florinda
17 days ago
I agree with Izetta, because when the username is available, the message should be 'User-name available'.
upvoted 0 times
...
Izetta
18 days ago
I think the answer is C) 'User-name available'.
upvoted 0 times
...

Save Cancel