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! While you're at it, check out some resources Treehouse students have shared here.
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 trialSabine Kroess
2,401 PointsTroubles getting the console to work.
I am using Microsoft Windows 10 and Edge as Browser. As soon as I am pressing the F12 Button something that could be the JavaScript Console appears. But whenever I run my script I get a bunch of really un-understandable messages like: SCRIPT5007: Unable to get property 'clientWidth' of undefined or null reference terminal.js (108,7)
My script looks like this: var passphrase = "Open Sesame"; console.log(passphrase.length); console.log(passphrase.toLowerCase()); console.log(passphrase); console.log(passphrase.toUpperCase());
So far, the code was not tooo long or complex and I could fix all bugs without debugging - but I need the debugger - I want to learn to use it :-(
PLEASE HELP!!! :-(
3 Answers
Alexander Davison
65,469 PointsTry using Google Chrome.
Sabine Kroess
2,401 PointsIt is not (yet) installed on my computer. So far I am using either Mozilla Firefox or Edge. I already tried Mozilla Firefox - and the Java Script Console did not work either. So for sure I can Install a third Browser on my Computer - but how likely is it that I get/donΒ΄t get problems (compatibility ...)
Alexander Davison
65,469 PointsGoogle Chrome is one of the best browsers for programming HTML, CSS, and JavaScript because it supports the most useful things.
I never heard of Edge before, but i do know that:
- IE isn't good for modern JS/CSS/HTML programming because it doesn't support enough modern features
- Firefox is okay for front-end development
- Safari is ok
- Google Chrome is the best choice for HTML/CSS/JS development!
Sabine Kroess
2,401 PointsSo I did install Google Chrome yesterday and it works and was rather helpfull for my first little project in Java Script. Thank you Alexander :-).
Alexander Davison
65,469 PointsNo problem :)