The solution won't work

Tell us what’s happening:
I can’t tell what’s wrong with it .
I have checked the solution in the hint which is clearly the same but still it wouldn’t accept .
Plz click the link below to check the lesson.
Any help will be appreciated
Thank you.

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/85.0.4183.121 Safari/537.36.

Challenge: Write Reusable JavaScript with Functions

Link to the challenge:

1 Like

Hey @ameenarab5. Did you call the function? The challenge says to call the function also. Thanks.

what does it mean by calling the function?
I don’t know .
thank you

1 Like

Calling a function means to execute it. Your code just defined the function only, but did not execute it.

Try adding this to your code (outside the function defenition):

reusableFunction();

Don’t know whether this is the way to call a JS function. It’s worth a try.