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..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What datatype are the values you remove from a text input?

A

String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly