Product limit: zero is a setting
An admin panel reads a product limit from an API. Return fallback only when value is null; the JS function should also handle undefined, which JSON fixtures cannot…
Solve challenge → No login requiredJAVASCRIPT IN PRACTICE
Scenarios from real applications: carts, API data, reservations, permissions and file imports. Pick a level and solve a concrete problem.
First challenge without login · Free
Pick a challenge and explore the rules through a concrete example.
An admin panel reads a product limit from an API. Return fallback only when value is null; the JS function should also handle undefined, which JSON fixtures cannot…
Solve challenge → No login requiredReject repeated ids for ttl milliseconds after their last acceptance. events are ordered by non-decreasing integer time and have string ids. Accept the first occurrence…
Solve challenge → No login requiredA store offers free shipping at threshold or above. Return 0 if total reaches the threshold, otherwise fee. All amounts are non-negative integer cents; total is the cart…
Preview challenge → Free account required to solveAvailable challenges: 55.
See all challenges →The full catalogue requires a free account.
Practical JavaScript challenges cover application scenarios such as carts, bookings, data imports and event handling. You practise translating business requirements into code that also handles exceptions, such as receiving the same webhook twice.
Treat the description as a real application requirement. Identify rules that must always hold, such as avoiding double charges or handling zero correctly. Break them into small steps and compare them with the tests. Consider missing data, repeated events and operation order when relevant to the scenario.
Solve this challenge without creating an account.