JS Object and Dot Notation

JS Object and Dot Notation

11th Grade

25 Qs

quiz-placeholder

Similar activities

HTML, CSS & JS

HTML, CSS & JS

11th - 12th Grade

25 Qs

Intro to JavaScript in HTML quiz

Intro to JavaScript in HTML quiz

9th - 12th Grade

20 Qs

canvasA

canvasA

11th Grade

20 Qs

Web 101 Assessment

Web 101 Assessment

9th - 12th Grade

20 Qs

HTML & CSS

HTML & CSS

9th - 12th Grade

22 Qs

1.3.4 Web Technologies

1.3.4 Web Technologies

11th Grade

20 Qs

Online World revision quiz

Online World revision quiz

11th Grade

20 Qs

HTML

HTML

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?