Practice ยท 1 of 3
Make a Greeter and a Max
CHALLENGE
Difficulty: beginner+25 XP
1. Write greet(name) that RETURNS a friendly sentence using the name (any sentence โ build it with a template literal).
2. Write maxOfTwo(a, b) that RETURNS whichever number is larger (if equal, return either).
3. Log greet("Ada") and maxOfTwo(7, 3).
Press Submit to check your solution.
Back to lesson: Practice: Functions: Reusable Code โ Practice