Can I get some help with the last exercise pls! I don't understand why is it still wrong.
// Exercise Four: In this function you will be given an array called 'citiesArray.
// re-assign the fourth city in the array to 'Santa Fe'.
// Note: DO NOT create a new array in this challenge.
// Note: Remember that array indecies start at 0.
// Complete your work on the line above.
You have the correct logic, just incorrect syntax.
You are correct that you want to modify the 4th element of something
Remember "exerciseFour" is the name of the function so it is not an array.
citiesArray is the array you want to change the 4th element.
Take careful note of this comment:
// Note: Remember that array indecies start at 0
citiesArray is the 1st element
citiesArray is the 2nd element
citiesArray is the 3rd element
citiesArray is the 4th element
So we want to change citiesArray because it is the 4th element.
You also had the correct logic for how to set the array element to 'Sante Fe'
All we need to do is replace exerciseFour with citiesArray:
citiesArray = 'Santa Fe';