Assignment with a Returned Valuee

Tell us what’s happening:
Help! I do not get this part! Do not understand what is missing with my code. Please advice.
Thanks.

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:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value/

The characters on the line between var processed = 0; and function processArg(num) { should not be there.

1 Like

I’m getting an issue with this one. looks like it passes the first test, but fails the second.

// 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 code is fine. They’re looking for a semi-colon after the line you added. I might suggest you file a bug report, though the new version is on its way so.

You are correct, It works correctly with the Semi-colon.
I created an issue in github. Is there another place for bug reporting?

Best place for it. Again, the new curriculum is moving quickly, so it may not be an issue for much longer. That said, that was an annoying one.