// Practice Set · JS Arrays · guest

Guest practice: this set is not saved and does not count.

Question 1 of 5 from: JS Arrays

What does this log?

const board = [
  ["X", "O"],
  ["O", "X"]
];
console.log(board[1][0], board.length);
Question 2 of 5 from: JS Array Methods

What does this log?

const list = ["a", "b", "c", "d", "e"];
const removed = list.splice(1, 2);
console.log(list, removed);
Question 3 of 5 from: JS Array Methods

delete nums[1] removes the element at index 1 and makes the array one shorter.

Question 4 of 5 from: JS Array Sort

What does this log?

console.log([10, 9, 1, 100, 25].sort());
Question 5 of 5 from: JS Array Iterations

What does this log?

const nums = [1, 2, 3];
console.log(nums.map(x => x * 2), nums.forEach(x => x * 2));
Ready to submit?

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.