Beginner
Keep the Partial Answer
This route sends two pieces of the answer and then the connection drops. The current code loses everything and fails with an uncaught error.
Fix it: keep the text that arrived in #answer, and show The answer was cut off. Please try again. in #error.
What Check tests
- After the connection drops,
#answerstill shows the text that arrived #errorsays the answer was cut off- No uncaught error reaches the console
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.