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
Justin Zimpfer
4,508 PointsSolution is working, however still have 3 line errors?
I was doing the Variable Challenge and got it to work perfectly. However in my text editor it said document.write, alert, and prompt were used before they were defined. What does this mean and should I just ignore these?
1 Answer
Benjamin Barslev Nielsen
18,958 Pointsdocument.write, prompt and alert is not a part of JavaScripts native library, which we always can use when writing javascript code. They belong to the browser API, i.e., they only work when you run them in a browser environment. For the code to work correctly you need to find a JavaScript interpreter which runs in a browser environment. An example of such an interpreter could be this online interpreter.