HomeTracks
Explorer···
THEEBUG
Completed0/6
Score0
JSXlesson5.jsx×
THEEBUGlesson5.jsx
1
function Status({ isOnline }) {
2
return <p>{isOnline ______ "Online" : "Offline"}</p>;
3
}
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
4 blocks available
?
&&
==
===
Game Panel
0:000 pts
Level 5 of 6Conditional Rendering
0/1 slots correct
Objective
Complete the ternary so the status text matches whether the user is online
Expected Output
Online
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