Exerpad
Exercise 11 · Chapter: ArraysRequired+50 XP

Build a Grid

A nested array is an array that contains other arrays. You can use them to represent grids!

Read two numbers: rows and cols. Build a grid (an array of arrays) where each cell contains ".". Then print each row by joining its items with spaces.

Example:

Input:

2
3

Output:

. . .
. . .
Need a hint?
3 available · costs 5 XP each
javascript

Output
Run your code to see the output here.