Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

isNaN javascript

  var j ="Hello World" // isNaN (j) returns true
  var n = 15; // isNaN (n) returns false

  if(isNaN(n) == true)   // NaN means >> Not a Number
  {
      console.log("yes, it's a string");
  }
  else
  {
      console.log("no, it's a number");
  }
Comment

what is the use of isnan function in javascript?

// what is the use of isNaN function in javascript?
isNan function returns true if the argument is not a number; otherwise, it is false.
Comment

PREVIOUS NEXT
Code Example
Javascript :: js foreach class 
Javascript :: transpose of the matrix in javascript 
Javascript :: split decimal value in javascript 
Javascript :: jspdf save in server 
Javascript :: joi custom error 
Javascript :: select dropdown value using jquery 
Javascript :: js sleep 
Javascript :: datatable order number 
Javascript :: tcp listen node 
Javascript :: onselect javascript 
Javascript :: adding document to firebase firestore 
Javascript :: js math.trunc 
Javascript :: cypress verify url 
Javascript :: boolean object js 
Javascript :: unary operator javascript 
Javascript :: find all subsets of an array javascript 
Javascript :: install latest electron 
Javascript :: How to access return value of promise 
Javascript :: open bootstrap modal with javascript 
Javascript :: cypress command return value into variable 
Javascript :: google map in react js 
Javascript :: express js npm 
Javascript :: smooth scroll mouse wheel javascript 
Javascript :: send serialized form data jquery 
Javascript :: how to check localstorage not set 
Javascript :: Odd number function in javascript 
Javascript :: input radio trigger select jquery 
Javascript :: how to prevent event capturing in javascript 
Javascript :: change px string to number 
Javascript :: modulus of negative numbers 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =