Wednesday, October 23, 2019

Loop through an array in JavaScript

In Java you can use a for loop to traverse objects in an array as follows:



String[] myStringArray = {"Hello", "World"};
for (String s : myStringArray)
{
// Do something
}



Can you do the same in JavaScript?

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...