# //the code const friends = ['Michael', 'Steven', 'Peter']; friends.push('Jay'); console.log(friends); friends.unshift('John'); console.log(friends);
# this is just a quirk with the console and doesn't have to do with unshift, but because you're modifying the array HRk7yo6.mp4
# viewing the contents shows you the updated object, but at the time console.log is executed the array does have the contents you expect szjHsZ7.mp4