It is required to create a two-dimensional array of 10x5 and fill it with numbers from 100 to 200, then output the result in the form of a table (rows-columns) and sort. I am experiencing difficulties with JS: I can’t fill the array, but the result is displayed in one line.
var arr = [ [], [], [], [], [] ]; for (var i = 0; i < 15; i++) { arr[i] = Math.floor(Math.random() * (200 - 100 + 1)) + 100; } console.log(arr[1]);