let obj = {
login: login.value,
email: password.value,
password: email.value,
};
let array = [];
array.push(obj);
colors <input type="text" id="color" />
table += `<table color="${color.value}">`
let rows = document.getElementById('rows')
let cols = document.getElementById("cols")
let width = document.getElementById("width")
let tableContainer = document.getElementById("tableContainer")
function buildTable() {
let table =''
table += '<table width="${width.value}px">';
for (let i = 1; i <= rows.value; i++) {
table += '<tr >';
for (let j = 1; j <= cols.value; j++)
table += '<td>' + i + "" + j + '</td>';
table += '</tr >';
}
table += '</table>';
tableContainer.innerHTML = table;
}
buildTable()
rows.oninput=function(){
buildTable()
}
cols.oninput=function(){
buildTable()
}
width.oninput=function(){
buildTable()
}
Вот я сделал вроде нормальный нейминг
https://codepen.io/Valerass/pen/yLgKOmy?editors=1010