exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 19 discussion

Actual exam question from Microsoft's 70-480
Question #: 19
Topic #: 4
[All 70-480 Questions]

HOTSPOT -
You are validating user input by using built-in JavaScript functions.
The application must:
✑ Store the value that is entered in a variable named inputValue
✑ Use the built-in isNaN(tnputValue) function to evaluate the data type
You need to validate the return value of the isNaN(inputValue) function.
Which values will be returned? (To answer, configure the appropriate options in the dialog box in the answer area.)
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
isNan is false for all these inputs.
The isNaN() function determines whether a value is an illegal number (Not-a-Number).
This function returns true if the value is NaN, and false if not.
Reference: JavaScript parseInt() Function; JavaScript isNaN() Function

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
piroman
Highly Voted 5 years, 6 months ago
False False False False
upvoted 10 times
nelaed
4 years, 11 months ago
Yes 4xFalse - i ha var userInput = -13; if (isNaN(userInput)) alert("true"); else alert("false"); userInput = 23.3; if (isNaN(userInput)) alert("true"); else alert("false"); userInput = 3*8; if (isNaN(userInput)) alert("true"); else alert("false"); userInput = '5'; if (isNaN(userInput)) alert("true"); else alert("false");ve tested it;
upvoted 1 times
...
...
dr_0verboost
Most Recent 4 years, 8 months ago
ya all is false boyo...tested it
upvoted 1 times
...
rshirts
5 years, 6 months ago
Ran in Chrome dev console, all were false. eg. isNaN(3*8) returns false
upvoted 3 times
...
MrEngineer
5 years, 6 months ago
Answer is wrong. I tried. Answer as follows: False False True True
upvoted 1 times
krzysiekprzybylak
4 years, 11 months ago
It is very easy to test it and all answers are false.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...