4) DOM Scripting (Checkpoints 22-28)

Beschreibung

Quiz am 4) DOM Scripting (Checkpoints 22-28), erstellt von Sanny Lin am 24/03/2016.
Sanny Lin
Quiz von Sanny Lin, aktualisiert more than 1 year ago
Sanny Lin
Erstellt von Sanny Lin vor etwa 9 Jahre
17
1
1 2 3 4 5 (3)

Zusammenfassung der Ressource

Frage 1

Frage
DOM stands for: D[blank_start]ocument[blank_end] O[blank_start]bject[blank_end] M[blank_start]odel[blank_end]
Antworten
  • ocument
  • bject
  • odel

Frage 2

Frage
Each element of the DOM is best known as a what?
Antworten
  • node
  • object
  • element
  • item

Frage 3

Frage
What does the selector `document.getElementsByClassName()` return?
Antworten
  • a NodeList
  • an object
  • an array
  • undefined

Frage 4

Frage
Using no helper libraries, just DOM scripting, what property do you use to change the style of an element?
Antworten
  • .style()
  • .css()
  • .transform()
  • .js()

Frage 5

Frage
A commonly used metaphor to describe the DOM is...
Antworten
  • a tree
  • the solar system
  • a cactus
  • a speeding bullet

Frage 6

Frage
window.addEventListener('scroll', function(event) { console.log(event); }); What is "scroll" in this context?
Antworten
  • an event to listen for
  • an event to trigger
  • a function to execute
  • none of these
Zusammenfassung anzeigen Zusammenfassung ausblenden

1 Kommentar

about 9 years ago
Hi Sanny! For #1 in Quiz 4, wouldn't the more correct answer be object? Document.getElementsByClassName() returns an array-like object. Please see the following Stack Overflow link: http://stackoverflow.com/questions/3871547/js-iterating-over-result-of-getelementsbyclassname-using-array-foreach

ähnlicher Inhalt

Der menschliche Körper
JohannesK
VL 11 Synapse & Peripheres Nervensystem
jules2004
PuKW Step 2
Mona Les
Kurvendiskussion bei gebrochen rationalen Funktionen
berit.krondorf
Kommunikationssoziologie teil 2 grimm
Victoria N.
Vetie Viro 2018
Anna Nie
Repro 2017 Vetie
Kim Langner
MS-1.3 Folienpaket 2
Markus Voßmann
Vetie Reprospaß
Tropsi B
Vetie AVO 2019
Kristin E