12. More Practice Making Objects


#1


https://www.codecademy.com/en/courses/spencer-sandbox/1/7?curriculum_id=506324b3a7dffd00020bf661


There was a problem with your syntax.


var bicycle = {
    speed = 0,
    gear = 1,
    frame_material = "carbon fiber"
};


#2

You don't use = for properties. You use :.


#3

Odd, I used equals. mine came out more like

var bicycle = {
speed = 0;
gear = 0;
frame_material = "carbon_fiber"
};


#4

But it's wrong syntax and you can't use it.


#5

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