Guest practice: this set is not saved and does not count.
What does this log?
const board = [ ["X", "O"], ["O", "X"] ]; console.log(board[1][0], board.length);
const list = ["a", "b", "c", "d", "e"]; const removed = list.splice(1, 2); console.log(list, removed);
delete nums[1] removes the element at index 1 and makes the array one shorter.
delete nums[1]
console.log([10, 9, 1, 100, 25].sort());
const nums = [1, 2, 3]; console.log(nums.map(x => x * 2), nums.forEach(x => x * 2));
Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.
Check my answers