I need help, I can't seem to get this right

Tell us what’s happening:

I have written and called the function just as the exercise asked, yet it is still showing that I got something wrong, I even checked the hint and it was the same thing with the code I wrote, is there something I’m missing?

Your code so far



function reusableFunction() {
console.log("Hi World");
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36.

Challenge: Write Reusable JavaScript with Functions

Link to the challenge:

you are actually missing the function call

try reading again the explanation, or ask again here

I have looked at it a few more times, doesn’t seem like I am missing anything. Ho do you call a function

You can call or invoke this function by using its name followed by parentheses, like this: functionName();

did you see this part?

Yes I did, Oh my I didn’t know I had to write it on a new line. Thanks so much.

yes, that is calling the function, what you had was just defining it

1 Like

Thank you so much. I thought it was a glitch :grin: :see_no_evil:

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