Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript typeof

const name = 'ram';
typeof(name); // returns "string"

const number = 4;
typeof(number); //returns "number"

const valueChecked = true;
typeof(valueChecked); //returns "boolean"

const a = null;
typeof(a); // returns "object"
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #JavaScript #typeof
ADD COMMENT
Topic
Name
8+9 =