(Ad, please don’t block.)

Quizzes » Numbers (basic)

1. All numbers in JavaScript are doubles

How many bits do doubles have?

2. Number literals

const x = 0x10;

3. Number literals

const x = 0b10;

4. Number literals

const x = 4e2;

5. Number literals

const x = 4e-2;

6. Accessing properties

const x = 123.unknownProperty;

What happens?

7. Prefix incrementation operator

let x = 0;
const result = [++x, x];

What happens?

8. Postfix incrementation operator

let x = 0;
const result = [x++, x];

What happens?

9. Converting to number

10. Converting to number

11. Converting to number

12. Converting to number

13. Converting to number

14. Converting to number

15. Which of these expressions are true?


Correct answers: 0 out of 0