JSFiddle - React, Tailwind, and code Playground

by farrukhsubhani

HTML

<input id="ct" value="3" />

JavaScript

yourarray=[];
for (i = 0; i <4; i++) {
     temparray=[];
    for (j = 0; j < 5; j++) {
        temparray.push($('#ct').val()) //your values here
    }
yourarray.push(temparray);
}
console.log(yourarray);