SMShlok Mehrainshlok30.hashnode.dev·Jul 22, 2022 · 3 min readUnderstanding 'this' in JavascriptBy definition 'this' in Javascript refers to the object it belongs to and it can also be referred to as a property of the execution context Let's look at some examples of how 'this' refers to the object it belongs to or the property of the execution ...00
SMShlok Mehrainshlok30.hashnode.dev·Jul 22, 2022 · 2 min readlet Vs const VS var in JSlet Vs const Vs var in JS 1)var Socpe They can be functionally and globally scoped They can be reassigned and redeclared var declarations are globally scoped and they get added to the global object whenever they are declared outside the scope of any ...00
SMShlok Mehrainshlok30.hashnode.dev·Jul 21, 2022 · 2 min readTemporal Deadzones in JSDefinition of Temporal Deadzone/TDZ A temporal dead zone (TDZ) is the area of a block where a variable is inaccessible until the moment the computer completely initializes it with a value In simpler terms, TDZ is that area where you will get a "Refer...00