Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JSON Example

 const x = {a:"aaaaa", b: function(){return this.a}, c: function(){this.a}};
 console.log(x.b());
/* const x = {a:"aaaaa", b:  this.a, c: this.a};
 console.log(x.b);
 will return undefined
*/
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #JSON #Example
ADD COMMENT
Topic
Name
9+4 =