What are the function parameter rules

Posted by Jennifer | Updated on

JavaScript functions follow below rules for parameters,

  1. The function definitions do not specify data types for parameters.
  2. Do not perform type checking on the passed arguments.
  3. Do not check the number of arguments received. i.e, The below function follows the above rules,


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.

Related Questions & Answers