Hi! this is a short question, why when I write
console.log(groceryList.unshift(‘popcorn’))
the output is
8
and when I write
groceryList.unshift(‘popcorn’)
console.log(groceryList)
the output is
‘popcorn’,
‘orange juice’,
‘bananas’,
‘coffee beans’,
‘brown rice’,
‘pasta’,
‘coconut oil’,
‘plantains’
Is not should be the same?