during check varibale is number or not
Interviews3 answers
When you use isNaN function in JavaScript?
3 Answers
Bidyasagar MishraPosted Jul 17, 2019, 3:56 AM EDT
The isNaN() function decides whether a value is an illegal number(Not-a-Number).
Return Value
true if the value converted to the Number type is the NaN, otherwise false.
Web Joomla
eswariPosted Dec 9, 2012, 7:10 PM EST
isNaN() function determines the value which is passed to the function is a non-numeric or not. If the value is numeric it returns false else it returns true.
ex:
document.write(isNaN(123)); false
document.write(isNaN(-1.23)); false
document.write(isNaN('hello')); true
R ACHUTHAPosted Aug 27, 2012, 1:56 AM EDT

