DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Return object in parenthesis to avoid it being considered a wrapping function body
const myFunction = () => ({ value: 'test' }) myFunction() //{value: 'test'}
Source by www.freecodecamp.org #
PREVIOUS
NEXT
Tagged:
#Return
#object
#parenthesis
#avoid
#considered
#wrapping
#function
#body
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit