First steps, Strings
Say hello
The task
Write a function that takes a name and returns a greeting.
greet("Ada") returns "Hello, Ada!".
Write a function called greet.
Tests
| Call | Expected | Yours |
|---|---|---|
greet("Ada") |
"Hello, Ada!" |
not run |
greet("Tobi") |
"Hello, Tobi!" |
not run |
greet("Chiamaka") |
"Hello, Chiamaka!" |
not run |
solution.js
Tab indents. To leave the editor, press Escape, then Tab.
Output
Run prints what your code prints. Run the tests to check your function.