insted of getting the length of an array how do I get the value while looping through it code example
Example: loop through array javascript
/* ES6 */
const cities = ["Chicago", "New York", "Los Angeles"];
cities.map(city => {
console.log(city)
})