Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js json data undefined

// Wrong
const objMaker = () => { answer: 42 };

// Right
const objMaker = () => ({ answer: 42 });
Source by jscomplete.com #
 
PREVIOUS NEXT
Tagged: #js #json #data #undefined
ADD COMMENT
Topic
Name
7+3 =