JavaScript Multiple choices


Total available count: 50
Subject - JavaScript Frameworks
Subsubject - JavaScript

When isNaN() function returns true?


 

 

 

 



A


Solution:-

The isNaN() function determines whether a value is NaN or not. The isNaN() function determines whether a value is an illegal number (Not-a-Number). If the value equates to NaN, the function returns true. Otherwise, the function returns false.

Syntax
isNaN(value)

Parameter Values
Parameter - value
Description - Required. The value to be tested

Example:-
Check whether a value is NaN:

isNaN(123) //false
isNaN(-1.23) //false
isNaN(5-2) //false
isNaN(0) //false
isNaN('123') //false
isNaN('Hello') //true
isNaN('2005/12/12') //true
isNaN('') //false
isNaN(true) //false
isNaN(undefined) //true
isNaN('NaN') //true
isNaN(NaN) //true
isNaN(0 / 0) //true
isNaN(null) //false

 




Next 5 multiple choice(s)

1

Who developed JavaScript?

2

Among JavaScript and ASP script, which is faster?

3

What would be the result of  5+2+"3" in JavaScript?

4

Is JavaScript supports automatic type conversion?

5

What will the following code return:Boolean(x==="5") if x=5?

Comments