TTwinkalintwinkalp10.hashnode.dev·Aug 29, 2023 · 3 min readClosureFunction along with its lexical scope is known as a closure. Lexical scope is the ability of a function scope to access variables from the parent scope. We call the child function to be lexically bound by that of the parent function. function x() { ...00
TTwinkalintwinkalp10.hashnode.dev·Aug 29, 2023 · 5 min readClassesJavaScript Classes are templates for JavaScript Objects. Use the keyword class to create a class. A JavaScript class is not an object. We have to always add a method named constructor() . Before classes, we used constructor functions to do OOP in Jav...00
TTwinkalintwinkalp10.hashnode.dev·Aug 29, 2023 · 4 min readAsync/Await in JavascriptWhat is synchronous JavaScript? In a synchronous system, tasks are completed one after another. Think if you have only one hand and you need to complete 10 assignments So, you have to complete one assignment at a time. Well, JavaScript is by default ...00
TTwinkalintwinkalp10.hashnode.dev·Aug 29, 2023 · 2 min readHoisting in JavascriptIn JavaScript, hoisting allows you to use functions and variables before they're declared. When the JavaScript engine executes the JavaScript code, it creates the global execution context. The global execution context has two phases: Creation Execu...00
TTwinkalintwinkalp10.hashnode.dev·Aug 29, 2023 · 3 min readcall(), bind() and apply() in JavascriptIn Javascript, everything is an Object. In other object-oriented programming languages, the this keyword always refers to the current instance of the class. Whereas in JavaScript, the value this depends on how a function is called. const person = { f...00