Assignment with a Returned Value - assign processArg to processed

From everything I’ve found, I have the correct solution. It’s not letting me pass though, saying I have not met the following condition:

You should assign processArg to processed

I’m completely lost on what I’m missing in my code.

Thank you for any help pointing out what I’m missing here.

Your code so far

// Example
var changed = 0;

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

changed = change(10);

// Setup
var processed = 0;

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

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

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/assignment-with-a-returned-value

1 Like
processed = processArg (7);

This is perfectly valid syntax in real life, but the freeCodeCamp test suite was expecting you to write it without the space:

processed = processArg(7)
4 Likes

Thank you so much, you’re a lifesaver! I kept going over it, trying to figure out what I was missing. Will keep the spacing thing in mind for future challenges.

No worries.

I don’t think I’ve ever saved a life by contributing to the forum, but I’m happy it helped :slight_smile:

The test runner has some quirks, so if you are 100% sure your code is good and there’s definitely no typos, there’s usually a specific thing that may not have been obviously required…

Happy coding!