Add will to modyfying document task 1 sentence
This commit is contained in:
parent
97ef86242f
commit
21d444fcb5
1 changed files with 1 additions and 1 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue