Inside the constructor, “this” refers to the object itself. “In this object, the name will be equal to whatever the ‘name’ argument was when the object was constructed.”

I’d break open a text editor such as Visual Studio Code or Sublime Text and practice building objects. The reason is because being able to create, manipulate and iterate through objects and arrays is an absolutely key skill in JavaScript. don’t move on until you’ve got it!

Hello i just finished the challenge but i have problem to understand.
`var Bike = function() {

// Only change code below this line.
var gear;

this.setGear = function(num) {
gear = num;
};

this.getGear = function(){
return gear;
};

};`

in the method i put on set gear i put gear as an argument and it won’t passed. Then i changed ‘gear’ into ‘num’ on the argument and it passed. I want to know what i did wrong before? anyone could explain to me?

When I got to this exercise I tried out how the example constructor Car really behaves first of all. This helps with the overall understanding of what we are building. Feel free to try my example in codepen here. Just make sure you open the console.

I managed to solve this challenge reading the example above and figuring out how it all works. the only thing I am not really clear about is it why in the example the code works when the first function is set “speed +=change” but my code wont run (or at least wont be perceived as correct) if I type the same += and not only =.
Does anybody know why? Thanks!