Home / Skill tests / JavaScript

JavaScript test: 10 questions to check yourself

In plain words: JavaScript is the programming language of web pages: it makes buttons, menus and forms react to what you do. Answer ten questions, press the button, and see which you got right and why.

1,913 open jobs name JavaScript today, with a median advertised pay of $198K. The questions are the kind that come up in a first interview.

1What is the difference between const and let?
2What does typeof null return?
3What is the difference between == and ===?
4What does [1, 2, 3].map(n => n * 2) return?
5What is a Promise?
6What does await do inside an async function?
7What is a closure?
8What does this log? console.log(0.1 + 0.2 === 0.3)
9Which method adds an item to the end of an array?
10In a browser, what does document.querySelector(".price") return?

Questions about this test

How do I prepare for a JavaScript interview?
Work through realistic questions, read why each answer is right, then redo the ones you missed. This test has ten, taken from what interviewers commonly ask a beginner or a junior. Then read the postings: the 1,913 open jobs that name JavaScript show what employers expect on top of it.
Is this JavaScript test free?
Yes. It needs no account and no email, runs in your browser and sends nothing anywhere.
What does my score mean?
It is a self-check. Eight or more right means the basics are fresh; five to seven means a good base with gaps; under five means more practice first. It is not an official certificate.

More tests: SQL Excel Python Linux Docker All tests