Search
 
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
Name
3+4 =