Как разбить элементы (сетки) на 3 столбца контейнера с помощью цикла for
Вывод шахты не соответствует тому, что я хочу, чтобы он был
let array = ['a', 'b', 'c', 'd', 'e', 'f', 'g', and more++];
Let say array will display multiple grid.
let rowcount = Math.Ceil(array.length / 3)
for (let i < 1; i < array.length; i++){
return i++;
}
Mine output:- have 7 length of array , after rowcount will get
a b c
d e f g
Wrong...
Expected Output:-
a b c
d e f
g more more
more more more
more more more
more more more
more more more
more more more
more more more
more
Я хочу напечатать3 предмета в каждом ряду, в следующем ряду, даже не имеют 3 предмета (может быть, только 1 или 2).Кто-нибудь знает о решении?