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 Getting Started With ES2015 Defining Variables With let and const Using Constants with Arrays and Objects

"const" and "for" dosen`t work in Visual Studio Code.

I couldn`t find an answer . Or what program should I practice with. Thank you.

Gabbie Metheny
Gabbie Metheny
33,778 Points

const and for should both work in VS Code! Can you explain the problem you're having, and include your code formatted with the Markdown Cheatsheet? Happy to try and help!

Gabbie Metheny
Gabbie Metheny
33,778 Points

I was just going to suggest that maybe that's what was happening! It's really easy to mix up key words in programming, don't beat yourself up. Glad you figured it out! And VS Code is great, it's my favorite editor!

1 Answer

Thank you for replay, and im sorry that im wasting your time with my stupidity, apparently i was putting *for * instead of *let *. Everything is fine now. Thank you.