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 trialFederico Lemaire
8,423 PointsIt didn't show any dots, why?
Hi there! I did the challenge and I'd tried to see if it worked and it didn't appear any dot, so I've watched the solution and write the same code and even that it didn't appear any dot, so I only leave the whole code that start the challenge with the 60 lines of code and it didn't appear though. I tried with firefox and chrome. I thought that my code didn't work but it seems like the problem is other. I don't past the code here because is the same as the beginning of the challenge.
Does anybody know where is the problem?
2 Answers
Steven Parker
231,236 PointsI don't use brackets, but I'm wondering if it implements "document"? That's something that's typically found only in browsers and might not exist in a non-browser JavaScript engine.
Federico Lemaire
8,423 PointsHi There Steven! I don't know why, I did the challenge with the workspace because I couldn't with the text editor. I was wondering just why :/
Steven Parker
231,236 PointsThe workspace uses your own browser for previews, so "document" will be available when you run it that way.
Federico Lemaire
8,423 PointsHi Kris. Here is the snapshot: https://w.trhou.se/kly65fesgp
The thing is that i'm doing it with my text editor (brackets), and I know that is connected because I pop up an alert at the beginning of the code and it show the alert message but not the dots, if I run the code from the treehouse workspace, it works. Can you tell me why?
KRIS NIKOLAISEN
54,971 PointsKRIS NIKOLAISEN
54,971 PointsDo you see anything in the console? Can you post a snapshot?