check typeof nodejs code example
Example 1: node js check type of variable
if (typeof i != "number") {
console.log('This is not number');
}
Example 2: check data type in js
typeof("iAmAString");//This should return 'string'
//NO camelCase, as it is a JS Keyword