Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Agustin Hernandez
Agustin Hernandez
2,747 Points

JavaScript Semi-colon?

I have barley started learning JavaScript and while in the first section of the JS Basics course it talks about Syntax errors so I went on and wrote a statement without the semi-colon to see if it returns a Syntax error rather than throwing out an error the program executed right without errors by the JavaScript interpreter. So my question is how did the program run without causing an error?

1 Answer