Khido
1
I am struggling to find the value of 2
Your code so far
// Setup
var processed = 0;
function processArg(num) {
return (num + 3) / 5;
}
changed = change(10);
//Setup
var processed = 2;
function processArg(num){
return (num + 3)/ 5;
}
// Only change code below this line
processed = processArg(7);// Equal to 2
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
.
Challenge: Assignment with a Returned Value
Link to the challenge:
ShAfi
2
You’re doing it wrong, what you should do is:
call the function processArg
and assign it to the variable processed
Spoiler:
processed = processArg(7)
ILM
3
it equals two because here you are calling the function with a 7:
so this:
becomes (7 + 3)/ 5
, which equals 2 - the function returns 2 because of that
Khido
4
No changes even if I put 7
ILM
5
reset your code and respect the // Only change code below this line
comment
Khido
6
Thank you everyone for your help I got it