Chapter 210mChallenge

let & const — Challenge

Declare variables the modern way.

This content is not yet available in te. Showing English version.

View in English →

Apply what you've learned. Each challenge includes starter code and test cases.

Greeting Function

easy

Greeting Function

Create a function greet(name) that returns "Hello, <name>!". Then console.log(greet("Aarav")).

Expected Output

text
Hello, Aarav!
STARTER CODE
function greet(name) {
  // Your code here
}

console.log(greet("Aarav"));
1 test cases
Start Challenge