Test yourself

JavaScript Quiz

Answer the 12 questions below — you get instant feedback on each. Your best score is saved on this device.

1Which keyword declares a variable that cannot be reassigned?

2Which operator strictly compares value AND type?

3How do you write a comment in JavaScript?

4Which method adds an item to the end of an array?

5What does console.log() do?

6Which characters create a template literal?

7What does Array.isArray([1,2]) return?

8Which loop runs while a condition is true?

9What is typeof "hello"?

10Which symbol defines an arrow function?

11Which method joins array elements into a string?

12What does NaN stand for?

◀ Back to lessons