Skip to main content

Practice ยท 1 of 3

Make a Greeter and a Max

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).

Difficulty: beginner

Back to lesson: Practice: Functions: Reusable Code โ€” Practice