Getting two values logged when I print

Tell us what’s happening:
Hi

Can anyone help me help me with this please? Although not part of the exercise, logged the second value of the array and am getting 64 printed twice?

Your code so far


// Setup
var myArray = [18,64,99];

// Only change code below this line
var newArray = myArray[1]
console.log(newArray)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36 Edg/88.0.705.56.

Challenge: Modify Array Data With Indexes

Link to the challenge:

I think that’s just a quirk in how the test output works. It will print one extra console.log for each one you have in there. At least that’s what I’ve noticed. You can safely ignore the duplicate, there is nothing wrong with your console.log.