{"a": 42} // SyntaxError: Unexpected token ':'. Parse error.
function foo (data) {
console.log(data.a)
}
foo({"a":42}) // 42
Created
March 6, 2018 08:45
-
-
Save amysimmons/b95abc3d167aed58d1eaa7f86d0bbe48 to your computer and use it in GitHub Desktop.