Knowledge Check · 5 minutes

JavaScript Quiz

10 questions on variables, data types, arrays, and functions. Answer them all and instantly get a result with a recommendation for what to learn next.

Question 1 of 10
What's the difference between const and let?
Question 2 of 10
What does typeof "42" return?
Question 3 of 10
How does === differ from ==?
Question 4 of 10
How do you get a page element by a CSS selector?
Question 5 of 10
Which array method adds an element to the end?
Question 6 of 10
What does array.map() do?
Question 7 of 10
How do you declare a function that takes two arguments and returns their sum?
Question 8 of 10
What does console.log(2 + "2") output?
Question 9 of 10
Which keyword is used to test a condition and run code if it's true?
Question 10 of 10
How many times does the body of for (let i = 0; i < 5; i++) run?
0/10