Answers for "parentheses are used to return object in javascript"

0

parentheses are used to return object in javascript

() => ({ name: 'Amanda' })  // Shorthand to return an object
//that is equivalent to 
() => {   return { name : 'Amanda' }}
Posted by: Guest on December-31-2020

Code answers related to "parentheses are used to return object in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language