Chapter 210mChallenge
let & const — Challenge
Declare variables the modern way.
This content is not yet available in mr. Showing English version.
View in English →Greeting Function
easyGreeting Function
Create a function greet(name) that returns "Hello, <name>!". Then console.log(greet("Aarav")).
Expected Output
text
Hello, Aarav!Test cases (1)
1 · outputs Hello, Aarav!
expected: Hello, Aarav!
javascript
Loading editor...