Help me please I learn begin JavaSript

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

  **Your code so far**

function timesFive(num) {
return num;
}

var answer = timesFive(0);


  **Your browser information:**

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

Challenge: Return a Value from a Function with Return

Link to the challenge:

1 Like

You need to use num in a mathematical formula, not just return num.

2 Likes

Mod Edit: SOLUTION REDACTED
I think this will solve your problem

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

What exactly do you not understand?

Transforming the example code should be fairly straightforward.

function plusThree(num) {
  return num + 3;
}
var answer = plusThree(5);
  1. Change the name of the function to timesFive

  2. Change the addition operator to multiplication.

  3. Change the number three to a five.

1 Like

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