Tell us what’s happening:
Based on the instructions for the challenge my code is correct or Im totally missing something obviously wrong with it. When I run the test on it it fails with the following message
// running tests
reusableFunction should be a function.
reusableFunction should output “Hi World” to the dev console.
You should call reusableFunction after you define it.
// tests completed //
console output
ReferenceError: reuseavleFunction is not defined
ReferenceError: reuseavleFunction is not defined
Your code so far
function reuseableFunction() {
console.log('Hi World');
}
reuseableFunction();
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0
.
Challenge: Write Reusable JavaScript with Functions
Link to the challenge: