I am having trouble with number 15 in javascript arrays and objects


Replace this line with your code.



var President = {
name: "Barak Obama";
livingspace: "white house";

var newArray = [ [1, 4, 2], [President] ];


when you use the object literal notation (which you did to create the President object), key value pairs are separated from each other with commas (,) not semi-colons (;)


it went through but nothing popped up


good :slight_smile:

well, you don't have any console.log(), so could be nothing is logged to the console.

In many programs there is plenty of code behind the scenes which the user doesn't get to see


ok thanks man that helps