30-Days-Of-React
30-Days-Of-React copied to clipboard
Updated # 1. forEach
while reading, realized that "index" is spelled as "i" in console.log
const countries = ['Finland', 'Estonia', 'Sweden', 'Norway']
countries.forEach(function (country, index, arr) {
console.log(i, country.toUpperCase())
})
to....
...
countries.forEach(function (country, index, arr) {
console.log(index, country.toUpperCase())
})