Write Reusable JavaScript with Functions!

Tell us what’s happening:

Your code so far


// Example
function ourReusableFunction() {
  console.log("Heyya, World");
}

ourReusableFunction();

// Only change code below this line
function reusableFunction() {
    console.log ("Hi World");
}
resuableFunction ();

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/write-reusable-javascript-with-functions

What is exactly your struggle here?

I don’t know what to do

You misspelled the call.

Also, when making and calling functions, don’t but a space between the function name and parenthesis, you’ll drive yourself nuts.

1 Like

what did I miss spell?

A function call reusableFunction()

but thats how I have it spelled

Have another look at it. You misspelled it and like @zapcannon99 said, close the gap between a call and the parentheses.

1 Like

I had same problem, thank you.

This helped! Thank you!!