Quiz: Objects

Test your knowledge of objects in JavaScript.

1

How is an empty object literal created and assigned to a variable in JavaScript?

A)

myObject = new Object();

B)

const myObject = {};

C)

myObject = {};

D)

new myObject = Object();

Question 1 of 90 attempted

Get hands-on with 1400+ tech skills courses.