If a default parameter references another parameter, what order must they be declared in?

  • After the parameter it references
  • Before the parameter it references
  • It doesn't matter
  • They must be declared in a separate function
In JavaScript, default parameters are evaluated at the time of the function call. Explanation should cover the order of declaration and how the referencing works.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *