Im doing this wrong,can anyone see the problem

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

Your code so far


function reusableFunction("Hi World");

Your browser information:

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

Challenge: Write Reusable JavaScript with Functions

Link to the challenge:

HI @Mike2106 !

I think it would help to look at the example again.

function functionName() {
  console.log("Hello World");
}

You need to follow this general strucuture.
The functionName should be reusableFunction
You need to log to the console Hi World

Then you need to call the function.

The way to call a function is to use the function name followed by parenthesis.

For example:

functionName()

Hope that helps!

Filling this part out is important.

Learning to describe problems is an important part of learning how to code. Also, the more information you give us, the more likely we are to be able to help.

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

  **Your code so far**

function reusableFunction:() {
console.log("Hi world");
}

  **Your browser information:**

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

Challenge: Write Reusable JavaScript with Functions

Link to the challenge:

You still need to call the function.
Also, you have a syntax error.

Please look very carefully at the example again.

Dude. Filling this part out is important! Describing code and errors is a critical programing skill.

1 Like

I agree with that too :grinning:
Describing the problem will really help you out when these challenge get harder :grinning:

1 Like