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 trial

JavaScript JavaScript Basics (Retired) Making Decisions with Conditional Statements Boolean Values

Logan Detering
Logan Detering
1,953 Points

when ever I launch my code or preview my .js file in workspace it doesn't give any of the prompt, alert or document.

Problem in workspace

3 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi! Henrik Christensen is correct. This is likely easiest to troubleshoot if we can see your code or alternatively, see a snapshot of your workspace. But before we do that, let's check some basics first. Make sure you've saved your file. Reload the preview and refresh the browser. If that doesn't work, try clearing your browser cache and repeat this process. If it still isn't working, we're going to need to see the code :sparkles:

Doc Collins
Doc Collins
7,087 Points

My code that's failing is olert();

A new web page is started but doesn't show the alert as it appears in the Beginning Javascript class. I've tried in both IE 11.0.35 and Firefox 47.0.

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

That should be alert() instead of olert() as you've posted. Note the 'a' instead of the 'o'. :sparkles: