#javascript
Read more stories on Hashnode
Articles with this tag
In JavaScript, hoisting is a behavior where variable and function declarations are moved to the top of their containing scope during the execution...
Everything in JavaScript happens inside an execution context. An execution context is like a big box that contains all the types of code in...
Block Referring to is grouping multiple statements together inside a block (curly braces {}) in JavaScript. This is often done when JavaScript expects...
Before promises, we handled asynchronous operations using callback functions, but callbacks are not a good way to handle asynchronous...
Before the async/await keywords, we handled promises like this: const p = new Promise((resolve, reject) => resolve("resolved promise")); p.then((res)...
1. Basics of JavaScript variables: var, let, and const var: Function-scoped. Can be redeclared and updated. Example: var x = 10; var x = 20; ...