is it a must to use semicolons after an object literal in js?
this code doesnot work:
let nameof = "Hey";
let age = 12
const obj = {
nameof: "One",
age: 12,
order: function () {
return this.name;
},
}
({ nameof, age } = obj);
console.log(nameof, age)
yet this works when a semi-colon is added at the end of the object literal.