map() – JavaScript magic

map() – JavaScript magic

JavaScript provides us with a very helpful map method to work with arrays. It can be used to in scenarios where you want to perform an action on each of the elements of an array.

JavaScript long int

JavaScript long int

Ran into a very strange problem sometime back. I had to write a simple piece of code, subtract two number and return the result. Sounds simple doesn’t it, it was but not initially.The problem was, if the last two digits were different, the program would return...