JS Object and Dot Notation

JS Object and Dot Notation

11th Grade

25 Qs

quiz-placeholder

Similar activities

CIW  Site Development Associate Review 1

CIW Site Development Associate Review 1

10th - 12th Grade

25 Qs

HTML CSS JS

HTML CSS JS

9th - 12th Grade

20 Qs

Intro to HTML

Intro to HTML

8th - 12th Grade

20 Qs

CSS Box Model +

CSS Box Model +

8th - 12th Grade

20 Qs

Web Design CSS Study Set

Web Design CSS Study Set

9th - 12th Grade

20 Qs

html

html

KG - 12th Grade

26 Qs

Unit two  CSS and HTML Test

Unit two CSS and HTML Test

9th - 12th Grade

22 Qs

CSS Quiz SOL

CSS Quiz SOL

9th - 12th Grade

26 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?