codex-lv2-may-2025

Level Navigation: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Current Level: 23 24 25 26 27 28 29 30 31 32


đź§Ş Level 23: Render the Reply

What You’ll Do

Display the AI’s response in your output area.

Instructions

When the fetch resolves, show the value already stored in botReply inside the output area.

đź’ˇ Code Hints

Displaying API responses? You’ll need to show the AI’s response in your output area. Check out the Input/Output section in SNIPPETS.md for the right function to display text.

âś… Check

  1. Open your webpage in a browser
  2. Type a message in the input box
  3. Click the Send button
  4. Wait for the AI response (you should see “Thinking…” first)
  5. Verify that the AI’s actual response appears in the output area (not just “Thinking…”)
  6. If you see an error message instead, check the Console tab in DevTools for details

Next: Level 26 - Test & Check



Level Navigation: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Current Level: 23 24 25 26 27 28 29 30 31 32