conventions.io

Tech Challenge

2026-10-28

🟨

Daily Tech Challenge

JavaScript

medium
Question 1 of 5

What does this code log, given how Array.prototype.fill handles object values?

Example
const grid = new Array(3).fill([]);
grid[0].push('x');

console.log(grid[1].length, grid[0] === grid[2]);

Wednesday, October 28, 2026 · A new challenge drops every day