FAQ: Control Flow - Putting It All Together

Thank you for the note about Modern JS inserting semicolons automatically. I also did with and without - both worked. as long as we have { and } to start and finish, right?

Pretty much, yes. Blocks need to be defined with braces, and statements that occupy their own line don’t need semi-colons. To be on the safe side, though, using them is not such a bad thing.

1 Like