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);
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:

You’re doing it wrong, what you should do is:

call the function processArg and assign it to the variable processed


processed = processArg(7)

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

No changes even if I put 7

reset your code and respect the // Only change code below this line comment

Thank you everyone for your help I got it