Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Function calls paramaters must be seperated by , s

CAN SOMEBODY TELL ME WHAT THIS MEANS. people please help,

Hi Forknife3!

A parameter is for example a variable you pass to a function
example:

function multiply(numA, numB){
   return numA * numB;
}

Meaning, you don’t use semicolons ; or similar to seperate each possible “variable” to pass to the function

example usage:

var result = mulitply(10 , 5);

the comma , seperates the 10 from the 5, telling it that it’s a different parameter for the function.

Hope this helped as a quick explanation.

You’re missing ) in that line, so the game thinks that you try to have a different parameter after the :

Thank you for helping me I didn’t know that.

Nothing to thank for, mistakes happen all the time :stuck_out_tongue: