List of questions
Related questions
Question 43 - Certified JavaScript Developer I discussion
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
Your answer:
0 comments
Sorted by
Leave a comment first