Is it me? (Issues writing reusable function)

Tell us what’s happening:
Good Afternoon,
I’m sorry to waste you guys time with something so simple; however, I find myself constantly running into a problem. Do I have a typo in my code or something?

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 (X11; CrOS x86_64 13505.100.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.142 Safari/537.36.

Challenge: Write Reusable JavaScript with Functions

Link to the challenge:

1 Like

You are almost there.

You need to call the function appending () at the end.

// 1. Define function
function modelOfBike() {
    console.log('Honda CBR F4i');
}

// 2. Call function
modelOfBike();
3 Likes

Thanks @GeorgeCrisan . I am definitely kicking myself in the butt right now but it was definitely a learning experience.

3 Likes

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