JavaScript Online Test

Test real-world JavaScript skills that matter in a world with AI. Protected by AI proctoring.

For jobseekers

Practice your skills and earn a certificate of achievement when you score in the top 25%.

Take a Practice Test

For companies

Screen real JavaScript skills, flag human or AI assistance, and interview the right people.

About the test

The JavaScript online test assesses knowledge of programming in the JavaScript language and core front-end web development concepts. This test contains a series of live coding tasks that are executed inside the Google Chrome web browser.

The assessment includes work-sample tasks such as:

  • Handling user events and manipulating DOM to build responsive web pages.
  • Using classes, objects, and closures to write maintainable and reusable code.
  • Serializing to/from JSON and making AJAX calls.

A good Web front-end or JavaScript developer needs a solid understanding of the JavaScript programming language in order to build modern web pages, fix bugs, and write sustainable code.

Sample public questions

Easy
10 min
code
Public
AI-resistant
JavaScript
Arithmetic
Conditional Statements
Video

A megastore offers three types of discounts, which are represented as DiscountType object.

Implement the getDiscountedPrice function which should take the total weight of the shopping cart, the total price, and the discount type. It should return the final discounted price based on the discount schemes as shown in the promotional video below:

(Open full-size video in a new tab)


For example, the following code:

console.log(getDiscountedPrice(12, 100, DiscountType.Weight));

should print:

82
Easy
20 min
code
Public
AI-resistant
JavaScript
DOM Manipulation
Event Handling
Video
New

An RPG game lets you assign points to the strength and speed attributes of your character. The video below shows how 5 points are supposed to be assigned.

The available points are passed in the totalPoints parameter to initialize the UI.

Complete the initialize function so that the UI behaves as shown in the video. When initialized, all points should be available, and both attributes should start at 0.

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the JavaScript test with public questions.

Take a Certification Test

Sample silver certificate

Sunshine Caprio

Java and SQL
TestDome
Certificate
TestDome logo icon

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.

Ready to interview?

Use these and other questions from our library with our
Code Interview Platform.

Sample image of the interviews app.

87 more premium JavaScript questions

Truthy Expressions, Function Wrapper, Load URL, Photon Frequency, Array Search, Screen, Username, Loading Bar, New Folder, Tax Calculator, Numbers To Text, Launch Time, Color Codes, Row Appender, Read Write Execute, Paragraph, Node, Positive Numbers, Special Actions, Candies, Automated Forklift, Circuit Simulator, Hobbies, Height, Calories Burned, All Managers, Prioritize Products, Reduced Value, Donation Drive, Construction Game, Weather Station, Contacts, Popular Book, Company Stock, Train Tracks, Warehouse Products, Patient Records, Newest User, Chemical Machine, Employee Sheet, Filter, Unique Numbers, Confirm, Segment, Validation, Snapshot, Scale Font Size, Hide Button, A Tag, Table of Names, Reorder, Trading Data Paging, Log Parser, Log Patch, Post Comment, Timer, Memory Game, Double, Students, Paper Strip, Jogging App, Adventure Game, Seasonal Tourism, Chain Link, Friend, Parking Allocation, Ecological Experiment, Flimsy Bridge, Airport Networks, Planet Search, Product Rating, Date Transform, Cards, Max Sum, Increase Priority, Price Trends, Christmas Lights, Shipping, Ticket Transition, Tally Counter, Digital Flasks, Jobs Time, Choose Items, Checkout Form, Report Transformation, Subject Highlight, Vectors.

Skills and topics tested

  • JavaScript
  • Language
  • Closures
  • Exceptions
  • Ajax
  • HTTP
  • Promise
  • Arrays
  • Recursion
  • Bug Fixing
  • Classes
  • ECMAScript 2015
  • Regex
  • Strings
  • DOM Manipulation
  • HTML5
  • Objects
  • Timing Events
  • Associative Arrays
  • Content Manipulation
  • Arithmetic
  • Tree
  • 2D Array
  • Iteration
  • Video
  • Conditions
  • Event Handling
  • AI Code Review
  • Conditional Statements
  • Loops
  • Data Structures
  • Scope
  • Algorithmic Thinking
  • Dictionary
  • Dialog Box
  • Forms
  • Attribute Manipulation
  • Styling
  • Asynchronous Calls
  • JSON
  • Pagination
  • Serialization
  • Sorting
  • XML
  • Monkey Patching
  • Callback
  • Linked List
  • Graphs
  • CSS Selectors

For job roles

  • JavaScript Developer
  • Web Front-End Developer

Sample candidate report

Need it fast? AI-crafted tests for your job role

TestDome generates custom tests tailored to the specific skills you need for your job role.
Sign up now to try it out and see how AI can streamline your hiring process!

Use AI Test Generator

What others say

Decorative quote

Simple, straight-forward technical testing

TestDome is simple, provides a reasonable (though not extensive) battery of tests to choose from, and doesn't take the candidate an inordinate amount of time. It also simulates working pressure with the time limits.

Jan Opperman, Grindrod Bank

Product reviews

G2 - Crowd Badge
G2 - High Performer - Winter (2025)
Capterra - 4.5 Stars
Capterra - Ease of Use (2025)

Used by

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to accounting and MS Excel. See all pre-made tests.

130+ skills

From SQL and Python to Attention to Detail and Logical Reasoning. See all questions to filter by skill.

AI-ready assessments

Test what matters in a world with AI, protected by AI proctoring that flags any assistance.

How TestDome works

1

Choose a pre-made test
or create a custom test

2

Invite candidates via
email, URL, or your ATS

3

Candidates take
a test remotely

4

Sort candidates and
get individual reports

Enterprise-ready technical solutions

Multi-user Account

Support multiple users with shared permissions and role-based access control.

GDPR compliance

TestDome is fully GDPR compliant, see our legal pages .

Single Sign-On (SSO)

Use SSO for easy and secure user authentication for multiple users in your company. Request access.

Data anonymization

Automatic data anonymization after a defined period of time — or on-demand.