lectures done

This commit is contained in:
2026-01-03 15:32:33 +10:00
parent 6bbcec3411
commit 051052a75f
12 changed files with 95 additions and 17 deletions

View File

@@ -0,0 +1,11 @@
const paragraphs = ['C++', 'C#', 'JavaScript'];
const textDiv = document.getElementById('text');
let elemLink = textDiv.firstElementChild;
paragraphs.forEach(paragraph => {
const p = document.createElement('p');
p.innerHTML = paragraph;
textDiv.insertBefore(p, elemLink);
elemLink = elemLink.nextElementSibling;
});