Question: are semicolons required in javascript?
Answer: JavaScript semicolons are optional. ... This is all possible because JavaScript does not strictly require semicolons. When there is a place where a semicolon was needed, it adds it behind the scenes. The process that does this is called Automatic Semicolon Insertion.