Basic JavaScript - Assignment with a Returned Value

Tell us what’s happening:
Describe your issue in detail here.

It says, “You should assign processArg to processed
So i did, i assign processArg to processed, and still it’s telling me this.
Can’t figure out for 5 days what i did wrong.

Your code so far

// Setup
let processed = 0;

function processArg(num) {
  return processed = (num + 3) / 5;
}

// Only change code below this line
processed = processArg (7);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0

Challenge: Basic JavaScript - Assignment with a Returned Value

Link to the challenge:

Your code is correct but you have a whitespace between your processArg function and it’s (7) argument. If you delete the whitespace your code should work.

That’s it!?
Thought i was losing my mind, Thank you.

1 Like

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