Expected ';'


#1


It says 'expected ';'', I always get this problem...still can't figure out why...


var friends = new Object();

friends.bill = new Object();
friends.bill.firstName = "Bill";
friends.bill.lastName = "Gates";
friends.bill.number: "(206)-555-5555";

friends.steve = new Object();
friends.steve.firstName = "Steve";
friends.steve.lastName = "Jobs";
friends.steve.number: "(420)-325-5555";


#2

Hi these lines

friends.bill.number: "(206)-555-5555";
friends.steve.number: "(420)-325-5555";

you put : instead of =


#3

Sorry should have closed this, it was actually a glitch, what you have pointed out didn't even make a difference. I simply cut and pasted to try and locate the bug, but once I got back to the end it suddenly started working - there was no problem.


#4

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