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: