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) Introducing JavaScript Your First JavaScript Program

Rasbin Rijal
PLUS
Rasbin Rijal
Courses Plus Student 10,864 Points

Different text output compared to the result shown in video

Hi There,

I typed the exact code as in the video, but I got the different texts compared to the video.

After clicking the preview in the video in the teacher's browser it displays :

"The page at web-9axim7hcfb.treehouse-app.com says" Hello from Treehouse.

Whereas in mine, it displays :

"port-80-ba5d29trg1.treehouse-app.com says" Hello from Treehouse.

I am just curious that why it is different when the code is exactly same. Thanks

2 Answers

Hi,

As you can see, the only thing that has changed between your instructor's browser and your own is the "hostname" portion of the address. The different hostname is just an indication that treehouse has changed something (maybe the routing, maybe the port itself, could be a few things) about how/where this page is served, so it's cool. :)

Hope that answers your question!

can anyone tell me promo code for it i dont want to pay them pls

Brandon Schabell
Brandon Schabell
3,846 Points

I'm not aware of any promo codes (past or present), but as a user for about 2 months, I can say it was well worth the small investment.