Basic JavaScript - Write Reusable JavaScript with Functions

Tell us what’s happening:
Failed:You should call reusableFunction once it is defined.

reusableFunction

once it is defined.

Your code so far

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

  return reusableFunction;

}

Your browser information:

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

Challenge: Basic JavaScript - Write Reusable JavaScript with Functions

Link to the challenge:

You call a function outside of the actual function itself. You use the name followed by parentheses.

For example:

helloWorld();

This would call a function named helloWorld

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.