Javascript OOPs
I'm watching Net Ninja "object Oriented JavaScript Tutorial"series.
If inside a JS object this. signifies the object
If outside that object, on a normal line, it refers to the window object (as in the browser)eg
this.innerWidth = window.innerWidth
Comments
Post a Comment