5454 - [ How many zeros in 1 Million] ( #how-many-zeros-in-1-million )
5555 - [ Integer Division Without Using \* or /] ( #integer-division-without-using--or- )
5656- [ JavaScript Fundamentals] ( #javascript-fundamentals )
57+ - [ JavaScript Map] ( #javascript-map )
5758 - [ Array Sort] ( #array-sort )
59+ - [ Array Sort] ( #array-sort-1 )
5860 - [ What is an Integer] ( #what-is-an-integer )
5961 - [ increment letters by 3] ( #increment-letters-by-3 )
6062 - [ How to convert -ve to +ve number?] ( #how-to-convert--ve-to-ve-number )
@@ -652,6 +654,23 @@ node .\src\math-and-stats\integer-division.js
652654
653655## JavaScript Fundamentals
654656
657+ ### JavaScript Map
658+
659+ ``` js
660+ const map = new Map ();
661+ // insert
662+ map .set (' key' , ' value' );
663+
664+ // get
665+ map .get (' key' );
666+
667+ // remove
668+ map .delete (' key' );
669+
670+ // check key exist
671+ map .has (' key' );
672+ ```
673+
655674### Array Sort
656675
657676By default ` array.sort ` does not work you must pass delegate method.
@@ -666,6 +685,8 @@ a.sort();
666685
667686In order to sort in ` ascending ` order you must pass delegate method.
668687
688+ ### Array Sort
689+
669690** Ascending Order Sorting**
670691
671692``` js
@@ -714,7 +735,8 @@ Math.abs(2); //2
714735### Array slice
715736
716737Slice does not mutate the original array.
717- ` slice(index,count) ` : Starts taking number from given index and go till given count.
738+ ` slice(index,count) ` : Starts taking number from
739+ given index and go till given count.
718740
719741[ Example of slice] ( https://i.imgur.com/9iaew6W.png ) :
720742
0 commit comments