I am new in js. I am trying to understand how to use "this" correctly. I want to create an object with a behaviour. When the object created, the person is given a name and length of his step.
My question is how I can save the quantity of steps inside the function? how to do it correctly without losing context, because my this always looks to the global object.