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 typeYou 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:
Explanation:
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.
JavaScript parseInt() Function; JavaScript isNaN() Function
Correct answer is:
False
False
True
True
The user inputs each character in the textbox which is used inside the isNAN fn.