Merge pull request #2483 from f6p/create-vs-inner-grammar
Improve modyfying document task one sentence grammar
This commit is contained in:
commit
23674dd7f1
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