Call function after you define it

Tell us what’s happening:
my code been stuck at the end

Your code so far
function reusableFunction () {

console.log (“Hi World”);

}

reusableFunction ();


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

Challenge: Write Reusable JavaScript with Functions

Link to the challenge:

The parentheses are part of invoking a function. You can’t have a space between the function name and the parentheses.

2 Likes

Okay! I got it! thanks. solved!