Add will to modyfying document task 1 sentence

This commit is contained in:
Filip Pyda 2021-02-01 09:32:46 +01:00
parent 97ef86242f
commit 21d444fcb5

View file

@ -6,7 +6,7 @@ importance: 5
We have an empty DOM element `elem` and a string `text`.
Which of these 3 commands do exactly the same?
Which of these 3 commands will do exactly the same?
1. `elem.append(document.createTextNode(text))`
2. `elem.innerHTML = text`