Answers for "is NaN a number?"

1

how to check when a number varibal = nan in ts

if (isNaN(number)) {
      number = 0;
}
Posted by: Guest on December-23-2020
0

isnan in javascript

var s = userInput[0];
  if(isNaN(s) !== true)
  {
      console.log("yes");
  }
  else
  {
      console.log("no");
  }
Posted by: Guest on December-20-2020
1

nan in js

var val = Number.NaN;
Posted by: Guest on August-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language