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 console output. Test your understanding of type conversions, variable scope and execution order.
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 requiredRead the code and type the exact output.
Preview challenge → Free account required to solveAvailable challenges: 34.
See all challenges →The full catalogue requires a free account.
Predicting JavaScript output checks your understanding of type conversion, variable scope and asynchronous execution. It helps you investigate code that looks correct but returns a different value or performs operations in an unexpected order.
Try to determine the output without running the code. Track each expression’s value and type, variable scope and execution order. For asynchronous code, separate synchronous work from scheduled tasks. Submit the required format, including spaces and line breaks.
Solve this challenge without creating an account.