JS Object and Dot Notation

JS Object and Dot Notation

11th Grade

25 Qs

quiz-placeholder

Similar activities

Final Exam Review 2018

Final Exam Review 2018

10th - 12th Grade

20 Qs

Web Design Unit 3 CSS

Web Design Unit 3 CSS

9th - 12th Grade

20 Qs

HTML Forms

HTML Forms

9th - 12th Grade

20 Qs

Unit two  CSS and HTML Test

Unit two CSS and HTML Test

9th - 12th Grade

22 Qs

Javascript

Javascript

11th Grade

20 Qs

Intro to HTML

Intro to HTML

8th - 12th Grade

20 Qs

HTML Basics

HTML Basics

9th - 12th Grade

20 Qs

Web 102 Assessment

Web 102 Assessment

9th - 12th Grade

20 Qs

JS Object and Dot Notation

JS Object and Dot Notation

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Carven Mark Viado

Used 3+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does DOM stand for?

Domain Objective Metrics

Document Object Model

Document Object Modal

Document Objective Mean

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

In JavaScript, almost everything is an _______.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to access an object's property using dot notation?

object[property]

object.property

object->property

object(property)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will console.log(document.title); display if document.title = "My Page";?

"My Page"

document

alert

title

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you assign a new title to a webpage using JavaScript?

document.title = "New Title";

title.document = "New Title";

document(title) = "New Title";

title.document.value = "New Title";

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does document.getElementById("p1").textContent = "Updated text"; do?

Changes the paragraph text inside an element with ID "p1"

Deletes the paragraph element

Creates a new paragraph element

Appends "Updated text" to the existing paragraph

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will document.getElementById("p1"); return?

A CSS class

A string value

An object representing the HTML element

A new paragraph element

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?