Fragile JavaScript

I purchased a textbook on JavaScript and am trying to learn the language on my own. So far I have read up on variables, functions, and events. I do all the exercised at the end of each chapter. Here is the thing that irks me. If you have one character in your source code wrong, the resulting JavaScript just does not work.

At least in HTML when things go wrong, the browser seems to display something. With JavaScript you just get an empty page. I've got to discover or invent a way to make my JavaScript coding more robust. It feels like the whole house will come down if you make a change to your code or try something new.