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 #webdev
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
What are Nested Arrays? A nested array is an array inside another array. Eg. const arr = [b, c, [a, e, i, o, u], d, [f, g]] Why flattening arrays is useful? Flattening of arrays in JavaScript involves
Everyone tends to make mistakes and to handle these mistakes JavaScript has special methods. Look the technical term for an error would be "JavaScript throws an exception". Common type of JavaScript e
Before async/await, JavaScript used to write asynchronous code using callbacks and promises. You can take async/await as a syntactical sugar over the promises. The need to introduce async/await was be
“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