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,675 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!

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.

Gabbie Metheny
Gabbie Metheny
33,675 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!