Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Replace an Array Item

Assigning to an array index replaces the value at that position.

Example

const colors = ["red", "blue"]; colors[1] = "green";

Your task

Replace Tuesday with Wednesday and display Days: Monday,Wednesday.