Help with javascript function

Tell us what’s happening:

I can’t figure out what is wrong with my code?

Your code so far


// 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 (Linux; Android 5.1.1; SM-J200H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36.

Challenge: Assignment with a Returned Value

Link to the challenge:

Hi @amiraabdu02!

The test is sensitive to spaces.

Get rid of the space and it should pass.

1 Like

Thanks it worked! But the space was adsed automatically I did not add it myself.

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