(Ad, please don’t block.)

Quizzes » Values

1. Primitive values versus objects

Which of the following expressions produce objects?

2. Equality

Which assertions hold?

3. typeof

const result = typeof '';

What happens?

4. typeof

const result = typeof [];

What happens?

5. typeof

const result = typeof function () {};

What happens?

6. typeof

const result = typeof null;

What happens?

7. instanceof

const result = '' instanceof String;

What happens?

8. instanceof

const result = [] instanceof Array;

What happens?


Correct answers: 0 out of 0