Learn Basic String and Array Methods by Building a Music Player - Step 13

Tell us what’s happening:

Error: telling me that I should call the printMessage function and pass to “freeCodeCamp”.
my code:
const printMessage =(org) => {
(messing code)
console.log(${org} is awesome!);
}

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

const printMessage = (org) => {
function () = "freeCodeCamp";
 console.log(`${org} is awesome!`);
}
 

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn Basic String and Array Methods by Building a Music Player - Step 13

const printMessage = (org) => {
function () = "freeCodeCamp";
 console.log(`${org} is awesome!`);
}

Instructions:
Below your printMessage function, call the function and pass in the string “freeCodeCamp” as an argument.
You assigned the function within printMsg function.

You can’t assign a function to a string like the above. Challenge is asking you to create a function with an argument freeCodeCamp.

function(argument)

thanks bro, now I got it! awesome!

1 Like

It’s my pleasure. Keep it up, happy coding.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.