DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Default parameters in ES6
let func = (a, b = 2) => { return a + b }
Source by softhunt.net #
PREVIOUS
NEXT
Tagged:
#Default
#parameters
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit