5 XP challenge
Join Two Name Parts
very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve
TaskYour mission
Return first, then one hyphen, then second. Each input contains 0 to 15 ASCII letters. Keep the hyphen even when a part is empty.
Examples
| Input | Return |
|---|---|
first = "red", second = "kite" | "red-kite" |
first = "", second = "box" | "-box" |
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.