object, which is really confusing.
How could I modify it so it prints the scope of the function?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this#function_context
this refers to the object you called the function from Like method inside object, this refers to the object not to the method scope
how to get the this referring to the object of the function?
Use call or apply
thank you!
Обсуждают сегодня