Is Functional Programming any style of code that utilizes functions? If only it was that simple! Functions are indeed at the core of Functional Programming, but it’s how we use those functions that make our implementation functional.
This article aims to lay down some fundamentals of Functional Programming, while mainly pertaining to their application in
this refers to the object it belongs to on runtime, depending upon its call-site (where it is called).
However, understanding what it would refer to in any given context, requires a slightly deeper understanding of some relevant concepts, which will be covered in this article.
Just to start with,
this can have the following values depending upon where it is accessed :
thisrefers to the global object.
thisrefers to the global object. In strict mode, however,