Much like in the case of the English Language, where this is used in reference to its immediate surroundings, Javascript follows the same principles. Example — If you’re inside the four walls of our house and you state: This furniture needs to be repaired! It typically means that you are referring to a piece of furniture that is inside your house. In essence, this here refers to your house’s furniture. But, if you repeat the same sentence inside a furniture shop, This now refers to the furniture inside the shop and not of your home. Connecting it back to JS, the word “this” is used to refer to the object or the function inside which you have used the word.
Read MoreWell, well, well… Before we bust the myth let’s take a Journey to the Centre of the World… Just kidding! Let’s revisit what package managers are and why we need them!
Read More