Title: Quiz Week 4 Objects, Dates
Course: Fall 2023 - WEBD 164 (41934) > Section: Week 4 (Sep 11) How to Use Objects to Work with Data, Dates, Functions

Q: JavaScript can access the textbox as an object by referencing the _________________________
- name attribute
- id attribute
- for attribute
- label text
A: id attribute

Q: We can access the value of the textbox by using ___________________
- the value property
- the text property
- the innerHTML property
- the id attribute
A: the value property

Q: According to the OFFICIAL Document Object Model, the content between the opening and closing tag of an HTML element is referred to as a property. What is the name of this property?
- text
- innerHTML
- firstChild
- child
A: firstChild

Q: In the below statement, The HTML element whose id attribute value is "greeting" will display the content "Hello World" - true or false

document.getElementById("greeting").firstChild.nodeValue = "Hello  World";
- True
- False
A: True

Q: The JavaScript Date() object allows us to retrieve and / or set which of the below....   check as many as are true
- day of the week
- month (returned as an integer)
- hour
- milliseconds
A: day of the week; month (returned as an integer); hour; milliseconds