Javascript lesson: unable to pass this test

Tell us what’s happening:

  **Your code so far**

function timesfive(yo) {
return yo * 5;
}
var answer = timesfive(5);
var answer1 = timesfive(0);
var answer2 = timesfive(2);
console.log(answer);
console.log(answer1);
console.log(answer2);



  **Your browser information:**

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

Challenge: Return a Value from a Function with Return

Link to the challenge:

Create a function timesFive that accepts one argument, multiplies it by 5 , and returns the new value.

Your function name has a small typo.

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