I.D., please


#1

I’m having problems with “I.D., please” (Objects II, Lesson 6). From what I can tell, I’ve done as asked.

The error message says, “Oops, try again. Make sure to fill in the first console.log statement with typeof anObj”

```

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”

<do not remove the three backticks above>

#2

NO PARENTHESIS!!
Here’s the correct code for anyone using this to find help:
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”


#3

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