JavaScript's automatic semicolon insertion (ASI)

JavaScript
What are the rules for JavaScript's automatic semicolon insertion (ASI)?
.... read more on Stackoverflow, follow the link
Source

Also in JavaScript: