how toTroubleshooting

If you’re reading this page because something in your current exercise or project is broken, first and foremost:

A lapel pin from the Hichhiker’s Guide to the Galaxy reading “Don’t Panic”.

Remember: Troubleshooting is a normal part of the coding process. Here are some tips to help you to identify where issues are in your code and for solving those issues:

🧹 Clean up/organize your code

🔍 Review your code for:

🕵🏻‍♂️ In your browser, use dev tools to explore the problem

🔲 Isolate the problem by commenting out code that you think is unrelated

◻️ Start fresh; create a new Glitch and retype the code you think is creating the problem.

👀 Ask someone else to look at your code (ideally, either on GitHub or isolated in a Glitch so they can muck around a bit)

💡 Take a break

💾 Catch mistakes earlier by saving early, saving often and verifying your changes in the browser