Basic JavaScript - Write Reusable JavaScript with Functions

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

function reusableFunction () {

console.log("Hello World");
reusableFunction();
}

result
If reusableFunction is called, it should output the string.
Hi World

to the console.

console output Hello World Hello World Hello World

Your browser information:

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

Challenge: Basic JavaScript - Write Reusable JavaScript with Functions

Link to the challenge:

You are calling the function inside the function. You need to call it on the outside of the function

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