Write Reusable JavaScript with Functions!

Write Reusable JavaScript with Functions!
0
#1

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

#2

What is exactly your struggle here?

#3

I don’t know what to do

#4

You misspelled the call.

#5

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

#6

what did I miss spell?

#7

A function call reusableFunction()

#8

but thats how I have it spelled

#9

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

1 Like
#10

I had same problem, thank you.