Home My space log
Language EN (English)

Greet someone

JavaScript Beginner robot ages 8-10

The problem

Write a function greet(name). It gives back the text Hello, then a space, then the name, then an exclamation mark. Example: greet("Sam") gives "Hello, Sam!".

You will practice: functions, return, joining text

Mode

Press Tab to indent. Press Esc and then Tab to move on to the next button.

Your code runs in your browser. We do not receive it or save it.

Test results

      What your code printed