It supports in all browsers.
isNaN(123); // false -- 123 is a number isNaN(1.23); // false -- 1.23 is a number isNaN(12 - 3); // false -- 12-3 = 9 is a number isNaN(0); // false -- 0 is a number isNaN('3S'); // true -- 3S is not a number but string so not a number isNaN('abcd'); // true -- abcd is a string so not a number isNaN('01/02/20013'); // true -- 01/02/20013 is a date so not a number isNaN('01:02:03'); // true -- 01:02:03 is time so not a number var a; var b; // value not defined isNaN(a/b); // true a=10; isNaN(a/b); // true -- because b is not defined b=5; isNaN(a/b); // false -- a/b=10/5 = 2 is a number var a= [1, 2, 3,4,5,]; var b; // not initialized for(i=0; i<a.length; i++) b = b + a[i] isNaN(b); // true -- because b is undefined.
b was not initialize before the loop start, so b is undefined so undefined + any value = undefined
|By Jason Olivera On 30 Mar, 13 Viewed: 423|
A website isn't complete without the inclusion of all the right elements. Progress bar is one of the key components of every website. It informs the user about the total waiting time for a particular web page or a specific task to load. Apart from adding value to the website, the progress bar is... By Celin Smith On 18 Feb 2015 Viewed: 4,711