So I am attempting to "Add my friends" to the newly created "friends" object. In the example, we see this done in Literal Java notation.
What I am trying to do is complete the task using the Constructor method.
Below is the code that I have written so far for my friends Bill and Steve:
When I try to run the code I get the following error:
SyntaxError: Invalid or unexpected token<<
var friends = new Object(); var bill = new Object(); bill.firstName = 'Bill'; bill.lastName = 'Dufus'; bill.phone = '800-347-9919'; bill.address = '2 Enterprise Los Angeles, CA 92656'; var steve = new Object(); steve.firstName = 'Steve'; steve.lastName = 'Pear'; steve.phone = '800-777-1313'; steve.address = '337 Roadkill Way New York, NY 11217';
Any feedback would big super appreciated.