How am I getting a value of 2?

Tell us what’s happening:
Describe your issue in detail here.
So in the task description, it says processed should have a value of 2.
Why should it have a value of two? i’m kind of trying to understand it better because, if I put processedArg as 7 then how would I be getting a value of 2? is it adding? multiplying? etc… also I’ve been practicing repetition so it sticks to me hehe

  **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 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15

Challenge: Assignment with a Returned Value

Link to the challenge:

When you call the function here

The number 7 will go in place of the expression here

(7+3) / 5 = 2

1 Like

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