Understanding JavaScript Variable Declarations: The Journey from var to let and constIntroduction In the world of JavaScript, variable declarations play a crucial role in shaping the behavior and structure of code. The introduction of keywords like let, var, and const has revolutionised how developers manage variables within their pr...Apr 7, 2024 · 3 min readkirti-singh.hashnode.dev
Asynchronous JavaScript: Callback, Promise, and Async/AwaitBefore moving to asynchronous JavaScript let's understand the difference between synchronous and asynchronous. Synchronous and Asynchronous in JavaScript JavaScript is a synchronous, single-threaded programming language. It means code is run after on...3GSAMar 18, 2023 · 5 min readkirti-singh.hashnode.dev
The Nullish Coalescing Operator (??)Nullish coalescing operator returns the right side operand when the left side operand is Nullish. Likewise left side, an operand is returned when the right side operand is Nullish. Often used to provide a default value if the first one is missing. Um...Feb 24, 2023 · 1 min readkirti-singh.hashnode.dev
Arrow Function in JavaScriptThe arrow function is introduced in ES6 which is a more straightforward form of the traditional function we used. While both functions work in the same manner.Example of arrow function: const arrowFunction = () => 'This is Arrow Function'; arrowFunct...Feb 12, 2023 · 2 min readkirti-singh.hashnode.dev