check if var is NaN
function isNaN(x) {
return x !== x;
};
isNaN(NaN);//truelet b=1
let n=readline()
if(isNaN(b)){
console.log("You typed 0!")
}else{
console.log("You did not type 0!")
}
Also in JavaScript:
- material ui color background
- string split javascript
- js how to convert vh to pixel
- node express cors headers
- each javascript
- node js if no arguments
- jquery advace
- google pay payment gateway for react js project
- jquery class selector
- make web page refresh on javascript
- mongodb nodejs connect localhost
- capitalize in javascript
- react enzyme async using hooks
- select the first elemnt have class in jquery
- jquery replace text in div
- how to turn a string to a number js
- how to get file name in directory node js
- putting a loop into an array javascript
- i get two times event click of button javascript
- js string replace
- ApexCharts
- javascript given range how to make sure array contains all values?
- redirect with javascript
- remove a user from a reaction discord.js