for items in list javascript code example
Example: for elem in list javascript
var myList = ["first element", "second element", "third element"];
for (let elem in myList) {
console.log(elem);
}
var myList = ["first element", "second element", "third element"];
for (let elem in myList) {
console.log(elem);
}