JavaScript Online Test
For jobseekers
Practice your skills and earn a certificate of achievement when you score in the top 25%.
Take a Practice TestFor 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
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:
82An 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 TestSample silver certificate
Sunshine Caprio
Java and SQL TestDomeCertificate
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.

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!
What others say
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
Used by
Solve all your skill testing needs
150+ Pre-made tests
130+ skills
AI-ready assessments
How TestDome works
Choose a pre-made test
or create a custom test
Invite candidates via
email, URL, or your ATS
Candidates take
a test remotely
Sort candidates and
get individual reports






