Return a Value from a Function with Return Problem in output

Return a Value from a Function with Return Problem in output
0

#1

Hello Everyone,
As per the below assignment the answer should be num*5. But when am assigning any number to var answer= timesFive() its showing the answer times five(5)===25.

Your code so far

// Example
function minusSeven(num) {
  return num - 7;
}

// Only change code below this line

function timesFive(num) {
  return num *5;
}
var answer = timesFive(0);```
**Your browser information:**

Your Browser User Agent is: ```Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8```.

**Link to the challenge:**
https://www.freecodecamp.org/challenges/return-a-value-from-a-function-with-return

#2

Don’t worry too much about what that “fake” console shows. It shows values produced by the tests, but not necessarily what you expect. If you want to prove to yourself what answer would show in the real browser console (Ctrl+Shft+J in Chrome), then you can add a console.log statement a specific value you want to check like:

function timesFive(num) {
  return num *5;
}
var answer = timesFive(0);
console.log('the answer is ' + answer);  // displays 'the answer is 0'