Six things you may not know about JavaScript - LogRocket Blog
Briefly

In JavaScript, the function 'returnSomething' returns 'undefined' due to Automatic Semicolon Insertion, illustrating the unexpected behavior of the language's syntax rules.
JavaScript's Automatic Semicolon Injection can lead to unexpected results, as seen in the function returnSomething(); while other languages require explicit semicolons, JavaScript's leniency can cause confusion.
Read at LogRocket Blog
[
|
]