DML School of Technology
Menu

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

CallExpectedYours
greet("Ada") "Hello, Ada!" not run
greet("Tobi") "Hello, Tobi!" not run
greet("Chiamaka") "Hello, Chiamaka!" not run

Next challenge · All challenges

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.