DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
ES6: Set Default Parameters for Your Functions
const increment = (number, value = 1) => number + value;
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#Set
#Default
#Parameters
#Your
#Functions
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit