Change an Array Element by Index
You can change any value inside an array by assigning a new value to a specific index. In this challenge, update the second element of the array to the string 'JavaScript' so that both test cases log true.
Premium
JavaScript
Console