# Why is Codecombat still using var for JS?

**URL:** <https://discourse.codecombat.com/t/why-is-codecombat-still-using-var-for-js/30827>\
**Category:** Site Feedback\
**Created:** [October 4, 2021, 6:18pm UTC](https://discourse.codecombat.com/t/why-is-codecombat-still-using-var-for-js/30827 "2021-10-04T18:18:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennypr0fane](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bennypr0fane/32/8337_2.png) [@bennypr0fane](https://discourse.codecombat.com/u/bennypr0fane)\
**Post date:** [October 4, 2021, 6:18pm UTC](https://discourse.codecombat.com/t/why-is-codecombat-still-using-var-for-js/30827/1 "2021-10-04T18:18:59Z")

</div>

Why is Codecombat still using `var` for Javascript variable declaration keyword everywhere?  
I’d like to brush up on my JS basics, but find that the lessons may not have been revised since 2014?

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [October 4, 2021, 10:39pm UTC](https://discourse.codecombat.com/t/why-is-codecombat-still-using-var-for-js/30827/2 "2021-10-04T22:39:01Z")

</div>

1st of all, welcome back! (I don’t know you, but still)  
2nd of all, just use ctrl+f and replace them all with `let` xD  
But yeah, I think they should be updated.

---

<div class="post-metadata">

**Author:** ![bennypr0fane](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bennypr0fane/32/8337_2.png) [@bennypr0fane](https://discourse.codecombat.com/u/bennypr0fane)\
**Post date:** [December 19, 2022, 2:04pm UTC](https://discourse.codecombat.com/t/why-is-codecombat-still-using-var-for-js/30827/3 "2022-12-19T14:04:16Z")

</div>

Thanks for the welcome!  
Of course I can “just” write ES6 (est. 2015), but that doesn’t change the fact that newbies are still taught 8-year-old ways, and it’s a very poor testament to the amount of work and/or diligence being put into this platform. Just saying.
