JavaScript JavaScript Loops, Arrays and Objects Tracking Data Using Objects Add Properties to an Object

idriss Elouilani
PRO
idriss Elouilani
Pro Student 1,232 Points

I tried to add 3 properties to an object called paris but is not working

I tried to add 3 propretie to an object called paris but it doesn't work

script.js
var paris = {
  population :  2.211e6 ,
  latitude : '48.8567 N' ,
  longitude : '2.3508 E' ,
};


};
index.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JavaScript Objects</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>

2 Answers

Henrik Christensen
Henrik Christensen
Python Web Development Techdegree Student 38,316 Points
var paris = {
  population :  2.211e6 ,
  latitude : '48.8567 N' ,
  longitude : '2.3508 E' ,
};


}; // remove this line