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

Josh O.
Josh O.
2,370 Points

Please don't show the wrong way first.

Please don't show the wrong way to do something before showing the correct way. I spent about an hour trying to figure out why my code wast working when it was exactly like what was on the screen. I code as we go so I can see how I am getting it. Then to find out const was used instead of let just reinforced suing const in the wrong scenario. Now Im more confused. Please stop.

2 Answers

HIDAYATULLAH ARGHANDABI
HIDAYATULLAH ARGHANDABI
21,058 Points

Hello Josh Practically we use const the most as soon as it is possible let only and only when your variable keeps changing. I wish it helped.

Hmm even though I don't disagree with you, but I think as a programmer you should be able to accept that sometimes you face something that is confusing at first until you research it and figure it out whilst enjoying the challenge.