javascript-dom-manipulation-2 Flashcards
1
Q
What are the differences between innertext and textContent?
A
innerText returns the visible text contained in a node, while textContent returns the full text..
2
Q
What datatype are the values you remove from a text input?
A
String
3
Q
Why is it so important to be able to dynamically update text?
A
Because things change in a website while user interacts, so doc needs to update along with the user