Quiz: Getting Classy

Test your knowledge of the classes in JavaScript.

1

What is encapsulation?

A)

Keeping the inner workings hidden inside the object.

B)

When the same process produces different results in different objects.

C)

When the properties and methods of one object are added to a new object.

D)

When the methods and properties of an object can’t be copied.

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.