I learn destructuring and I was just get an error because I didn't use semicolon on "obj" object
let a = 11
let b = 989
const obj = {a:23, b:7, c:14};
({a, b} = obj)
console.log(a,b)
This is only work if I use semicolon. If I don't use it I get an initialization error and I am totally confused about this. Can anyone explain me why this is happen?