12.Practice makes perfect- problem with the syntax


#1


https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/2/4?curriculum_id=506324b3a7dffd00020bf661#


Oops, try again. There was a problem with your syntax.


var object1 = new Object();

object1.name = "Bane";
object1.lastname = "Cavic";
object1.age = 26;
object1.country = "Serbia";
object1.city = "Belgrade;

var object2 = new Object();

object2.name = "Ivona";
object2.lastname = "Ilic";
object2.age = 26;
object2.country = "Serbia";
object2.city = "Belgrade;

var object3 = new Object();

object3.name = "Banivona";
object3.lastname = "Vona";
object3.age = 102;
object3.country = "Thailand";
object3.city = "Bangkok";


#2

Hi vilage,

Line 7 and Line 15. You forgot to put a closing double quote ( " " ).


#3

Thank you so much for your help! :slight_smile:


#4

Notice how the syntax highlighting lets us see where the mistake is? Red text when it should be black is a sure sign of a syntax error before that point.


#5

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