Skip to main content

JavaScript Question 143

Question 143 of 0JavaScript

Which of the options result(s) in an error?

Login Required

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

Code:
const emojis = ['🎄', '🎅🏼', '🎁', '⭐'];

/* 1 */ emojis.push('🦌');
/* 2 */ emojis.splice(0, 2);
/* 3 */ emojis = [...emojis, '🥂'];
/* 4 */ emojis.length = 0;

Select the correct option: