Skip to main content

JavaScript Question 108

Question 108 of 0JavaScript

Which of these methods modifies the original array?

Login Required

Please login to select answers and solve this question. You can view the question without logging in.

Code:
const emojis = ['✨', '🥑', '😍'];

emojis.map(x => x + '✨');
emojis.filter(x => x !== '🥑');
emojis.find(x => x !== '🥑');
emojis.reduce((acc, cur) => acc + '✨');
emojis.slice(1, 2, '✨');
emojis.splice(1, 2, '✨');

Select the correct option: