Help keep us running.
If you don't mind tech-related ads (no tracking or remarketing), and want to keep us running, whitelist JSFiddle in your blocker.
Thank you! ✌🏻🐞❤️
Scoping variables to a function within a parent function so that it is not affected by the outer parent and does not go out of the outer lexical environment to reference varaibles
Access to inside variables from outside because of closure
Sort method primarily used for strings but this logic can apply for numbers
Also shows pop() , push() and shift() built in JS methods