Anyone know where the number 7 answer comes from?

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

the math here makes no sense to me???
the solution given is the # 7, can someone explain why?

  **Your code so far**

// Setup
var processed = 0;

function processArg(num) {
return (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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36

Challenge: Assignment with a Returned Value

Link to the challenge:

Hi @ca8050 !

I don’t see where you are getting solution of seven.
The number that is passed into the function is 7 but the function will return 2.

It also says that in the test cases at the bottom.
processed should have a value of 2

got it, thank you… :grinning:

1 Like

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