Delve into the inner workings of the JavaScript event loop and callback queue and learn how to optimize your code for better performance.
Category: Javascript
Get last element of Array in Javascript
You can always do it in the fastest way. If performance is a deal breaker for you where you are writing code for million concurrent connections then arr.length -1 is your thing. But if you fancy some ES6 like I do, then read on..