JavaScript `this` keyword

In order to find more details about this usage, follow link below.

I just took the following part from that page.

Demo 1

this value is global object in line 11.

this value is person object in line 6.

Demo 2

Demo 3

Demo 4

Demo 5

Leave a Reply