Topic it no work

Tell us what’s happening:

var sum = 0;
function addSum(num) {
  sum = sum + num;
}
addSum(3); /

works
why not?

Your code so far


// Setup
var processed = 0;

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

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

Your browser information:

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

Challenge: Assignment with a Returned Value

Link to the challenge:

it is a function,
you need to call it with the round parenthesis and the parameter between the round parenthesis

1 Like

When do

// Setup
var processed = 0;

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

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

TypeError: processed is not a function
so it’s not a function freecodecamp says so

processArg is a function
processed is a number

you need to treat processArg as a function

1 Like