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 trialFilipe Alvarenga
5,478 PointsIn my browser the application executed the two alerts first.
In my browser the application executed the two alerts first. Only after I close the second one it wrote the message on the document body. I think it may occur because of some update on Chrome since this video was made, but since this steps are being used to explain how programming statements execute one after another it can confuse a lot who are a beginner in web applications.
P.S.: I'm referring to this video: https://teamtreehouse.com/library/javascript-basics/introducing-javascript/your-first-javascript-program-2.
2 Answers
Steven Parker
231,846 PointsYou're right, modern browser behavior is a bit different from when the video was made. Before, the page was rendered while the program was running, but now most browsers do not render the page until the program ends.
It wouldn't hurt to submit this as a bug to Support, but I suspect they will say this is already in the queue.
Filipe Alvarenga
5,478 PointsHey,
Thanks for your response! I've submitted a bug report :)