15

Started learning Javascript. Came across many weird things. Like 'this' refers to the object in which the function is but when it is used inside a function which is inside another function it starts referring to the Global Object???Seriously?? I don't get it๐Ÿ˜•๐Ÿ˜ต๐Ÿ˜ข

But still I am starting to love Javascript along with its weird parts๐Ÿ˜

Comments
  • 1
    @BassClefBuddha so it addresses this.
  • 1
    Rumor has it this is a bug in the original javascript spec. And they wanted to make everything backwards compatible so it never got fixed...
Add Comment