29.07.2016 Views

front-end-developer_1_

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Front-End-Developer - Level 1<br />

12.Debugging In JavaScript<br />

Embedded Video: https://www.youtube.com/watch?v=qYky_O7yvwI?rel=0<br />

As you start writing more and more complex JavaScript, you'll run into increasingly difficult<br />

bugs and problems. Here are some approaches to debugging when something goes wrong.<br />

As an example, let's use our Madlibs page, but with some errors I've introduced for us to<br />

debug. Here's the code:<br />

madlibs.html<br />

Debugging In JavaScript<br />

144

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!