node js check type of variable

JavaScript
if (typeof i != "number") {
    console.log('This is not number');
}
Source

Also in JavaScript: