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 trialWilliam Mock
1,543 PointsWon't even run
Although I'm sure there's a typo or two in my program, theoretically it should at least do SOMETHING, right??? And yet all I'm getting is the HTML. No clue where I went wrong.
Jennifer Nordell
Treehouse TeacherNot necessarily. Some syntax errors end in just that... an error with nothing being rendered to the page at all. This is sort of the beast of programming. To assist you we're going to need to see your code. Likely as not, though, there's an error being reported in your browser's developer tools but I'm not sure if you're familiar with those or not.
Anthony Mendonca
5,008 PointsHi William, you probably wrote your code like so? var answer1 = prompt('Name a programming language that's also a gem');
If so, you wouldn't get any output as you would get an error in your browser's console as you need to escape the single quote for all the questions, like so: var answer1 = prompt('Name a programming language that\'s also a gem');
Hope this helps!
1 Answer
Anthony Mendonca
5,008 PointsHi William, you probably wrote your code like so?
var answer1 = prompt('Name a programming language that's also a gem');
If so, you wouldn't get any output as you would get an error in your browser's console as you need to escape the single quote for all the questions, like so:
var answer1 = prompt('Name a programming language that\'s also a gem');
Hope this helps!
Kosti Wessman
869 PointsKosti Wessman
869 PointsPost your code, please.