JavaScript functions follow below rules for parameters,
1 2 3 4 | function functionName(parameter1, parameter2, parameter3) { console.log(parameter1); // 1 } functionName(1); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.