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 www.freecodecamp.org #
PREVIOUS
NEXT
Tagged:
#Set
#Default
#Parameters
#Your
#Functions
ADD COMMENT
Topic
COMMENT
Name
8+9 =
Submit