Basic JavaScript - Write Reusable JavaScript with Functions

Don`t know why this won't go through,  probably missed something.
the error code on the console reads, 
// running tests
If reusableFunction is called, it should output the string Hi World to the console.
// tests completed
// console output
Hi World
Hi World
Hi World
Hi World
Hi World
Hi World
This would tell me code is ok?

Your code so far

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

Your browser information:

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

Challenge: Basic JavaScript - Write Reusable JavaScript with Functions

Link to the challenge:

You are trying to invoke/call the function inside the function declaration.

First you declare a function as:

function someFunction() {
  // function code here
}

Then, below that, you call it as:

someFunction();

You should be calling it outside of the function declaration’s curly braces.

Thankyou, tried lots of things, didn’t think of that, Thankyou so much :slight_smile: :grin: