Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

named arguments in javascript

function foo({first, second, third} = {}) {
  console.log(first, second, third)
}

foo({
  first: 1,
  second: 2,
  third: 3 
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #named #arguments #javascript
ADD COMMENT
Topic
Name
7+1 =