Answers for "check datatype nodejs"

12

check data type in javascript

typeof("string"); //string
typeof(123); //number
Posted by: Guest on July-25-2020
1

node js check type of variable

if (typeof i != "number") {
    console.log('This is not number');
}
Posted by: Guest on April-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language