PrepAway - Latest Free Exam Questions & Answers

Which values will be returned?

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:

PrepAway - Latest Free Exam Questions & Answers

Answer:

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

7 Comments on “Which values will be returned?

    1. MichaƂ says:

      You should test it the way is talking about in question:
      Use the built-in isNaN(tnputValue) function to evaluate the data ….

      If You use alert(isNaN($(“#inputText”).val())); You will see that correct answer is F F T T




      7



      2

Leave a Reply