I want help about this javascript

Tell us what’s happening:

Your code so far

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


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36.

Challenge: Write Reusable JavaScript with Functions

Link to the challenge:

1 Like

Hi @pandyajay2121 :wave: Welcome to the freeCodeCamp forums!

You are on the right track, and almost there. The problem you have is where you are calling/invoking the function. It must be outside of the function definition itself. You are including the function call reusableFunction(); just before the closing curly brace of the function definition. If you move the call outside of the function’s code block (after the closing curly brace), you’ll have it.

thank you so much brother

1 Like