Challenge Hints: Changing Elements in Arrays

A list of hints for the challenges in the Changing Elements in Arrays lesson.

Last updated - July 23, 2024

 

Checkpoint

Items in an array need to be separated by commas. Did you remember the semicolon at the end?

Remember that arrays are zero-based, so the first item is at position 0. Don't forget the semicolon at the end!

Weather Forecast

Did you declare an array with 10 different digits?

Did you change 3 of the elements in the array?

Did you log the array to the console?

4 Course Meal

Did you declare your array with 4 elements of "oatmeal"?

Did you switch out each element in the array with a meal that you would like?

Did you alert the user of the new array?

Party Color Theme

Did you declare the array that was provided?

Did you replace at least 3 of the colors?

Did you log the array to the console?

Mix n' Match

Did you declare an array with 8 elements?

Did you switch out 4 of the elements?

Did you log the array to the console?

Presidents of the United States

Did you copy and paste the provided array?

Did you replace the names?

Did you alert the user each time that the name is found?

Did you alert the updated array to the user?

For more help with JavaScript, check out our JavaScript Reference Guide!