For the following exercise you can use ES5 or ES6 syntax, whichever you feel more comfortable with at this point.
Go ahead to Repl.it , using the code below as your starting point.
Task 1
Given an array of cities, using map()
method, return/create an array which will include all the cities having only the first letter of each city name capitalized.
Task 2
Using the forEach()
loop, console.log
the names of all the elements in the citiesCapitalized
array including the number representing the position of the element starting with 1 for the first (index) element.