Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ES6: Set Default Parameters for Your Functions

const increment = (number, value = 1) => number + value;
 
PREVIOUS NEXT
Tagged: #Set #Default #Parameters #Your #Functions
ADD COMMENT
Topic
Name
7+6 =