Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript default parameters

function multiply(a, b = 1) {
  return a * b;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #default #parameters
ADD COMMENT
Topic
Name
5+1 =