Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript object type

console.log(typeof 42);
// expected output: "number"

console.log(typeof 'hello');
// expected output: "string"
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #object #type
ADD COMMENT
Topic
Name
5+9 =