JS Object Recap

JS Object Recap

11th Grade

5 Qs

quiz-placeholder

Similar activities

4.5 (c)(d) Method Definition & Method Call

4.5 (c)(d) Method Definition & Method Call

11th - 12th Grade

10 Qs

APCSA Inheritance

APCSA Inheritance

10th - 12th Grade

8 Qs

Access quiz by Simar Brahma :D

Access quiz by Simar Brahma :D

5th Grade - Professional Development

10 Qs

Windows Operating Systems Basics

Windows Operating Systems Basics

11th Grade

10 Qs

Arrays Javascript (CodeCademy)

Arrays Javascript (CodeCademy)

9th - 12th Grade

10 Qs

Individuals and Variables of Data

Individuals and Variables of Data

6th - 12th Grade

10 Qs

Onshape - Intro to CAD - Unit 1 Vocab

Onshape - Intro to CAD - Unit 1 Vocab

9th - 12th Grade

10 Qs

Introduction to MS Access 2013

Introduction to MS Access 2013

7th Grade - University

10 Qs

JS Object Recap

JS Object Recap

Assessment

Quiz

Computers

11th Grade

Hard

Created by

arturo parinas

Used 3+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a JavaScript Object?

a collection of key-value pairs

a collection of arrays

a collection of functions

a collection of strings

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an object using literal notation?

let obj = [key: value];

let obj = {key: value};

let obj = (key: value);

let obj = <key: value>;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for accessing the property of an object?

objectName.objectPropery( );

objectName.objectProperty[ ];

objectName.objectProperty;

objectName.objectProperty{ };

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: alert(person.firstname); when person is {firstName: 'John',lastName:'Doe'}?

John

Doe

undefined

null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: alert(address.district); when address is {buildingNo: '3960' , street: 'North 1st Street', country: 'USA'};?

3960

North 1st Street

USA

undefined