Don’t use the for…in statement to iterate over JavaScript arrays because the result might not be what you were expecting. Read on to find out the correct way to iterate over a JavaScript array.
Archive of posts tagged JavaScript
Shortly after setting up a fresh installation of Apache, I uploaded a website, only to find that none of the JavaScript was loading. It turns out that Apache helpfully provides you with a common JavaScript directory but if you’re not using it you may need to turn it off.