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 JavaScript
, that will help you understand :
These foundations will immensely aid you in grasping further concepts of Functional JavaScript, to be covered in future articles, if this one helps.
…
In the simplest of terms, the JavaScript keyword 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 :
this
refers to the global object.this
refers to the global object. In strict mode, however, this
will be undefined
.
Another Software Engineer traumatized by JavaScript.