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..
Read MoreWhen developing web applications, there are often times when you need to pass data from the server-side (PHP) to the client-side (JavaScript). While PHP and JavaScript are two separate programming languages running in different environments, there are a few techniques to efficiently share data between them. In this article, we’ll explore one of the most […]
Read More