6 I.D, please


#1



// 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 {job: "hola" } ); // should print "object"
console.log( typeof 7 ); // should print "number"
console.log( typeof "string" ); // should print "string"

Prints out 
object
number
string

error code is Oops, try again. Make sure to fill in the first console.log statement with typeof anObj


#2

Maybe you should do what the error says?

Just an idea...


#3

Yep... thanks I think I need a break lol


#4

please help here


#5

Code should be like this. Type what goes after var only.

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"


#6

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