I.D., Please


#1


Syntax Error


// complete these definitions so that they will have
// the appropriate types
var anObj = { job: "I'm an object!" };
var aNumber = 42;
var aString = "I'm a string!";

console.log( typeOf anObj ); // should print "object"
console.log( typeOf aNumber ); // should print "number"
console.log( typeOf aString ); // should print "string"


#2

typeOf should be typeof.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.