Adding elements to an array in JavaScript

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Given the below JavaScript array:
let fruitBasket = ['Apple', 'Banana', 'Cherry'];
What will be the output of the following methods:
fruitBasket.unshift('Peach');
fruitBasket.push('Lemon', 'Kiwi');
and how will the fruitBasket array look like afterwards?
Select one option from the list

Create a free account to access the full topic