Truthy and default values
What does the code print? Compare boolean conversion with || and ??. Enter one line with | separators.
Solve challenge → No login requiredJAVASCRIPT IN PRACTICE
Predict output, understand type conversions and work out the order of asynchronous operations.
First challenge without login · Free
Pick a challenge and explore the rules through a concrete example.
What does the code print? Compare boolean conversion with || and ??. Enter one line with | separators.
Solve challenge → No login requiredAnalyze the Event Loop. What exactly will the console output?
Solve challenge → No login requiredMatch a date in YYYY-MM-DD format. Check the shape only: 4 ASCII digits, hyphen, 2 digits, hyphen, 2 digits. Do not validate the calendar; 2024-99-99 matches.
Preview challenge → Free account required to solveAvailable challenges: 57.
See all challenges →The full catalogue requires a free account.
JavaScript code analysis helps you understand an unexpected result before changing the implementation. You practise reasoning used in code reviews, debugging and explaining application behaviour to teammates.
Read the code one operation at a time and note intermediate values and their types. Separate immediate execution from scheduled work. For regex, encoded data and security tasks, first identify the rule you are checking, then look for an example that could disprove it.
Solve this challenge without creating an account.