JavaScript without semicolons

Been doing it a while...

The only issue I have is when doing this so far...

let obj = {}  
['a','b','c'].forEach(item => console.log(item))

Which doesn't work but this does

let obj = {};  
['a','b','c'].forEach(item => console.log(item))

hmm.