The concept is known as JavaScript Semicolon Insertion or "Automatic Semicolon Insertion". This blog post: JavaScript Semicolon Insertion: Everything you need to know outlines the concept well in an understandable manner using examples under the headings:
It even digs into the official ECMAScript specification about the topic.
1.4m articles
1.4m replys
5 comments
57.0k users