Semicolons in JavaScript are optional
var a = 1;
var b = 2; | var a = 1
var b = 2 |
JSON is a subset of the Object Literal
JSON | Object Literal |
- The keys must be strings (i.e. enclosed in double quotes
" ) in JSON.
- The values can be either:
- a string
- a number
- an (JSON) object
- an array
true
false
null
| |
{"key":"value","more":"more value"} | {id: 12, name: 'huypv'}
{'key': 94, getKey: function() {}} |