Home
Tracks
Reset
Help
Theebug — Learn React by Doing
Light
Explorer
···
▼
THEEBUG
▼
easy
lesson1.jsx
lesson2.jsx
lesson3.jsx
▼
medium
lesson4.jsx
lesson5.jsx
▼
hard
lesson6.jsx
Completed
0/6
Score
0
JSX
lesson5.jsx
×
THEEBUG
›
lesson5.jsx
1
function
Status
(
{
isOnline
}
)
{
2
return
<
p
>
{
isOnline
______
"Online"
:
"Offline"
}
<
/
p
>
;
3
}
TERMINAL
PROBLEMS
OUTPUT
DEBUG CONSOLE
⊕
⋮
$
[system] Theebug ready. Happy coding!
Code Blocks
Drag blocks into the drop zones above
4 blocks available
?
&&
==
===
Game Panel
0:00
0 pts
Level 5 of 6
Conditional Rendering
0/1 slots correct
Objective
Complete the ternary so the status text matches whether the user is online
Expected Output
Online
Use a hint
Debug says:
JSX can't contain an if statement directly — but a ternary expression works fine inside {}. Which symbol starts a ternary?
Debug the Worm