2020

Javascript Technical

JS call, bind, and apply methods

Each JavaScript function has access to the this keyword.
The this keyword references the object to which the function belongs (remember, everything in JS is an Object).

The value of the this keyword is determined by how/where the function was executed.

This means that if we are not careful we can lose the scope of what this is actually pointing to.

Luckily, all JavaScript function object has access to some very special methods which we can use to explicitly state what this should reference. These methods are bind(), call(), & apply().

In this article we take a refreshing look at the bind(), call(), & apply() methods.

Enjoy!

Blog Javascript Technical

Securing Node.js Applications with JSON Web Tokens(JWT)

Security is a critical component of most modern web applications. As you progress through your career, you will develop more and more applications which requires some level of security, namely authentication and authorization. One way to handle security in your application in through the use of JSON Web Tokens (JWT) which we’ll discuss in this article