Tell us what’s happening:
Your code so far
// Example
function ourReusableFunction() {
console.log("Heyya, World");
}
ourReusableFunction();
// Only change code below this line
function reusableFunction() {
console.log("Hi World");
}
resuableFunction();
reusableFunction should be a function
reusableFunction should output “Hi World” to the dev console
Call reusableFunction after you define it
If mine is wrong, then so is the example above it…
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/write-reusable-javascript-with-functions