Exerpad
Exercise 1 · Chapter: FunctionsRequired+50 XP

Say Hi Function

Write a function called greet(name) that prints Hi, <name>!

Then call it with "Alex" and "Sam".

Hi, Alex!
Hi, Sam!
Need a hint?
3 available · costs 5 XP each
javascript

Output
Run your code to see the output here.