Learn Basic String and Array Methods by Building a Music Player

Hi Everyone!!

The question is :
Create a new named arrow function called printMessage that has one parameter called org. Inside the body of that function, add a console statement. Inside that console statement, add the template literal ${org} is awesome!.

Below your printMessage function, call the function and pass in the string "freeCodeCamp" as an argument.

Open up the console to see the result.

I don’t know where i’m mistaken in this code, anyone please help me out on this. My code is :

const printMessege = (org) => {
console.log(${org}, is awesome!);
}
printMessege(“freeCodeCamp”);

The console shows :
Hello there!
freeCodeCamp, is awesome!

I guess i did it as the question has asked. Help me out guys :smiley: !!

Hi there, welcome to fcc community.

According to the instruction, the template literal should be:

`${org} is awesome!`

Yours is:

`${org}, is awesome!`

There is an extra comma (,) in your template literal.

For the next time, you can create a help post by clicking on the Help button.
This button will only appear after you’ve tried to submit your code 3 times.
It will help to create a post with your code and the link to the challenge for faster assistance.

You also can post your code by put your code between 2 line of ``` (3 back ticks) (the back tick key is usually right under the Esc key on your keyboard), like this:

```
# your code here
```

or you can use the Preformatted Text button (the one with </> icon) (or press Ctrl + E):

1 Like