Heterogenous array


#1

In arrays 14 lesson Heterogenous array my code is below what is wrong in it. Its showing SyntaxError: Unexpected token.

var number = 6;
var bool = true;
var string = "Earth";
var object = {name: "Pavitha", age: 24;};
var myArray = ['number', 'bool', 'string', 'object']
console.log(myArray);


14/17 Help
#2

There is your problem. The variable names are in quotes. Remove the quotes and store just the names.