Basic JavaScript - Assignment with a Returned Value

Tell us what’s happening:
Describe your issue in detail here.
im stock on this stage, i dont know what to do

  **Your code so far**
// Setup
let processed = 0;

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

// Only change code below this line

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Assignment with a Returned Value

Link to the challenge:

Did you see the example of how to call the function sum in the instructions?

ourSum = sum(5, 12);

You call a function by adding parentheses after it and you can pass in values to the function inside the parentheses. And then you can assign the value returned by the function to a variable using the equals sign.

You want to do the same thing for the processArg function. Call it and pass in the value 7 and then assign the value returned by the function to the variable processed.

(post deleted by author)

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