Help! Code Error

Q) Call the processArg function with an argument of 7 and assign its return value to the variable processed .
Tips: processed should have a value of 2.
Tips: 'You should assign processArg to processed


// Setup

var processed = 0;

function processArg(num) {

  return (num + 3) / 5;


// Only change code below this line

var processed = 2;

function processArg(num) {

  return (num + 3) / 5;


processed = processArg(7);


I’m unable to proceed further, please guide me. What mistake did i do ? Where am i wrong!

Hello there,

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 (’).

For future posts, if you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Hey Sky020,

I’m sorry, but your answer is not related to my issue. Any one can help me?


You don’t need to redefine the processArg function, it is already defined for you. So get rid of that and it should pass.

1 Like

Thanks, Mate. That fixed.

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