Closed vamsipavanmahesh closed 9 years ago
Sorry for the late response, I didn't get a notification for this issue.
I still have to add solutions to the exercises. The assignment reads:
Log two value: an object which has a property
foo
and a value"bar"
, and an array with the values1
,2
and42
.
While you are logging two values, you are logging the string "foo"
(wrong) and the array [1,2,3]
(correct).
So the solution should be:
var obj = {foo: 'bar'};
var arr = [1,2,3];
log(obj, arr);
(or similar)
Here is my code var obj = { foo: "bar", arr: [1,2,42]
} log(obj.foo,obj.arr) in the code editor .......................................................................
var obj = { foo: "bar", arr: [1,2,42]
};
console.log(obj.arr); console.log(obj.foo);
This seems to work fine in the console