Skip to content
SoftwareSolutions.net
Programming

JavaScript Basics quiz

Variables, types, functions, arrays and events in JavaScript.

ProgrammingBeginnerFree certificate

Start the quiz

Enter your name and email. Your name appears on your free certificate, and your email is used to send your certificate details. The quiz has 20 questions. Each question has 4 or 8 options, and some ask you to choose more than one answer.

We store your name, email and score so we can issue your certificate. We only send marketing email to people who tick the box above, and you can unsubscribe at any time.

JavaScript runs in every modern browser and powers most interactive websites. Understanding variables, equality, arrays, functions and asynchronous code is essential before you move on to frameworks. Many bugs come from misunderstanding how JavaScript treats values, so the basics are worth getting right.

The quiz covers declarations, strict equality, array methods, closures, promises, truthy and falsy values, and browser events. A few questions ask you to select every value that behaves a certain way, which tests how well you know the language's quirks.

Hints explain each answer and point out common traps for beginners. Finish the quiz to download a certificate with your score, and test the examples in your browser console to confirm the behaviour.

Use your browser console to test JavaScript behaviour directly. Compare == with ===, call array methods such as map and filter, and create a promise that resolves after a short delay. Predicting the result before you run each line is one of the best ways to find the gaps in your understanding.