Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js typeof number

console.log(typeof 93);
// Output = "number"

console.log(typeof 'Maximum');
// Output = 'string'

console.log(typeof false);
// Output = "boolean"

console.log(typeof anUndeclaredVariable);
// Output = "undefined"
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #typeof #number
ADD COMMENT
Topic
Name
5+7 =