this in the Global Context

Share this video with your friends

Send Tweet

JavaScript's this mechanism behaves a little differently compared to other languages. When used in the global context (outside of any function), this refers to the global object. This lesson highlights the different behavior between Node and the browser.

Tengjiao
Tengjiao
~ 7 years ago

simple but useful, thanks

Tengjiao
Tengjiao
~ 7 years ago

simple but useful, thanks

Alicia
Alicia
~ 7 years ago

Off topic, but what sort of text editor/terminal configuration is that? It looks lovely. :)

Marius Schulz
Marius Schulz(instructor)
~ 6 years ago

@Alicia: I'm using Visual Studio Code with the Dracula theme. A lovely combination, indeed :)