Javascript Dom Creation Flashcards

1
Q

What does document.createElement() take as its argument?

A

The string of element name that we want to create.

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

What does document.createElement() return?

A

The new element - specifically a DOM element.

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

How do you append elements to the DOM?

A

The appendChild() method.

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