Tell us what’s happening:
I realized bugs in JavaScript cours:
My task is to: - Create a function timesFive
that accepts one argument, multiplies it by 5
, and returns the new value. See the last line in the editor for an example of how you can test your timesFive
function.
When I write my code with is exactly thesame as hit gives you my code don’t pass even tought the are these:
my code: (don’t pass )
function timeFive(num) {
return num * 5;
}
code from freeCodeCamp:
function timeFive(num) {
return num * 5;
}
2 codes thesame… my don’t pass the other do… explain me why ?
Your code so far
my code :
function timeFive(num) {
return num * 5;
}
code from freeCode:
function timeFive(num) {
return num * 5;
}
// Example
function minusSeven(num) {
return num - 7;
}
// Only change code below this line
function timeFive(num) {
return num * 5;
}
console.log(minusSeven(10));
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/return-a-value-from-a-function-with-return/