const func = async (url) => () => { const result = await fetch(url).then(r => r.json()) console.log(result) return result } func()('SOME_JSON_URL') // what happen?
var a = { n : 1 }; var b = a; a.x = a = { n : 2 }; console.log(a.x) console.log(b.x)
input: '[1,2,3,[51,2,32,[],[2],1],5]' output: [1,2,3,[51,2,32,[],[2],1],5]