String Polyfills and Common Interview Methods in JavaScriptString string is just a sequencce of character properties Strings are immutable Strings behave like arrays (but they’re NOT arrays) Strings are objects under the hood way to create string let a =Apr 28 · 6 min readdushyantxcode.hashnode.dev
Map & sets in JavaScriptbefro these javascript only hava objects -> key-value storage Arrays -> ordered list Problem with object at that time objects were never design as pure key value database issues: Keys are always Apr 21 · 4 min readdushyantxcode.hashnode.dev
Array Flatten in JavaScriptwhat are nested arrays a nested array is simply an array inside another array eg let arr = [1, 2, [3, 4], 5] we can go more deep insode of that let arr = [1, [2, [3, [4]]]]; This is called deeply neApr 21 · 4 min readdushyantxcode.hashnode.dev
Spread vs Rest Operators in JavaScriptwhat does spread Operator does spread meas expand , it takes something like an array or object and spread its contents out individually const arr = [1, 2, 3]; console.log(...arr); output: 1 2 3 yoApr 20 · 5 min readdushyantxcode.hashnode.dev
Destructuring in JavaScriptWhat Destructing means pulling out a values out of arrays /object and storing them in variable in a shorter way for array without destructuring const arr = [10, 20, 30]; const a = arr[0]; const b = aApr 20 · 4 min readdushyantxcode.hashnode.dev