Sep 13, 2018

JavaScript Statement termination

//JavaScript Statement can be terminated by ;
doSth();

// ... but they don't have to be, as semicolons are automatically inserted
// wherever there's a newline, except in certain cases.
doSth()

// Because those cases can cause unexpected results, it is safer to use
// semicolons