js concat variable and string 1

js concat variable and string

const helloName = name => `Hello ${name}!`

Here is what the above code is Doing:
1. We’re creating a function called helloName that takes in a parameter called name.
2. We’re returning a string that says “Hello” and then the name that was passed in.

Similar Posts