Exercise 5 · Chapter: Pixel ProjectsOptional+50 XP
Border Box
Create a 10x10 grid with a "gold" border (1 pixel thick) and a "purple" inside.
The border is the first row, last row, first column, and last column.
Don't change the console.log statements at the bottom.
Expected output
10 gold purple gold
Need a hint?
3 available · costs 5 XP each
javascript
let grid = [];
// Create a 10x10 grid
// Border (row 0, row 9, col 0, col 9): "gold"
// Inside: "purple"
let __grid__ = grid;
// Don't change below this line
console.log(grid.length);
console.log(grid[0][0]);
console.log(grid[5][5]);
console.log(grid[0][5]);
Output
Run your code to see the output here.