JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
</head>
<body>
<div id="one"> </div>
<div id="two"> </div>
</body>
</html>
JavaScript
'use strict'
function doTable() {
let table = document.createElement("table");
document.body.append(table);
let textNode = [];
textNode[0] = "Привет";
textNode[1] = "Меня";
textNode[2] = "Зовут";
textNode[3] = "Антон";
let indexForTextNode = 0;
for (let i = 0; i < 4; i++) {
let tr = table.insertRow(i);
for (let j = 0; j < 1; j++) {
tr.insertCell(j).innerHTML = textNode[indexForTextNode];
++indexForTextNode;
}
}
}
doTable();