Assignment with a return value help

**Tell us

var processed = 0;

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

// Only change code below this line
var processed =  2;
function processedArg(num){
   return (num + 5);
   processed = processedArg(7);   
}

what’s happening:**

Your code so far


// Setup
var processed = 0;

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

// Only change code below this line
var processed =  2;
function processedArg(num){
 return (num + 5);
 processed = processedArg(7);   
}  

Your browser information:

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

Challenge: Assignment with a Returned Value

Link to the challenge:

Do you have a question?

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Seems you may be overthinking the question a bit.

You don’t need to create a new function. Just assign a variable to the already-created function. Your new function contains something resembling the answer.

1 Like

i got it thanku it was a bit difficult but finnaly .