if parameter is not number in js
let num1 = 'Hello';
if(isNaN(num1)){
console.log(num1 + ' is not a number');
} else{
console.log(num1 + ' is a number');
}
Also in JavaScript:
- javascript get list of files in directory
- nodejs open default browser on specific web page
- js focus event
- dropdown validation using jquery
- two dimensional array in javascript example code
- javascript get all characters before a certain one
- how to use axios in vue
- javascript splice without changing array
- butonc click jquery
- uirouter
- javascript dynamic arrays
- primitive and non primitive data types in javascript
- set a variable in express.js
- add sass to react
- Levenshtein Distance algorithm javascript
- angular serve
- settimeout arrow function javascript
- JS get min date
- riverSizes javascript
- what is ajax
- get height use js
- js array from
- destructure array javascript
- redux toolkit reducer