Map and Set in JavaScript
Map and set are built in data structures that are used to store ordered collections of data, where set holds unique values map holds the data key-value pairs. What is Map? Stores data as key-value pai
Search for a command to run...
Articles tagged with #javascript
Map and set are built in data structures that are used to store ordered collections of data, where set holds unique values map holds the data key-value pairs. What is Map? Stores data as key-value pai
“Dear JavaScript, even if I move on to fancier languages, I promise I won’t forget you." In JavaScript operations that take time, are handled asynchronously. Promises were introduced to handle such as
In simple terms, the spread operator is used for expanding elements while the rest operator is used to collect multiple elements into an array. These operators have same syntax (...) but have differen
Destructuring is a modern JavaScript feature that allows you to extract values from arrays or properties from objects and assign them to variables. Without destructuring: const user = { name: "Ansh",
In JavaScript, this refers to the object that calls (executes) the function. It is used to execute an object's properties and methods. this refers to who owns the code but the answer changes in differ
In JavaScript, textual data is written via strings. This is a primitive data type and is immutable in nature. We can use single quotes(' ') or double quotes (" ") or backticks (` `) to write text in o