5 XP challenge
Default for Empty Text
very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve
TaskYour mission
If message is empty return fallback; otherwise return message. Each string has 0 to 20 printable ASCII characters.
Examples
| Input | Return |
|---|---|
message = "", fallback = "unknown" | "unknown" |
message = "ready", fallback = "unknown" | "ready" |
Your code
Write your answer inside Solution, then use return to send it back.
Ln 1, Col 1
JavaScript
Try examples runs the public examples. Check my code checks your full answer and saves your completion.