Practice makes Perfect, Please help!


#1

var object1 = {
    food: "tomato"
    row: 1
};

var object2 = {
    food: "tomato"
    row: 1
};

var object3 = new Object();
object3.food = "tomato";
object3.row = 1;

It keeps telling me missing } after property list!


#2

use ,

var object1 = {
    food: "tomato" , //see here
    row: 1
};

#3

thanks a lot!! it worked


#4

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