
JavaScript
8
Вклад в тег
.div1 {
width: 50px;
height: 30px;
position: relative;
left: -1px;
border: 1px solid green;
}
.div2 {
top: 105%;
width: 50px;
height: 30px;
position: absolute;
left: -1px;
border: 1px solid red;
}
let lisString = "";
for (const company of json.companies) {
const li = `<li>${company}</li>`;
lisString+=li;
}
document.getElementById("companies").innerHTML = lisString;