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!

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 AJAX Basics (retiring) Programming AJAX Processing JSON Data

Use of 'var' instead of 'const'

I noticed the variables in the video are named using 'var'. Is this because the video may be dated? Or is there a reason we should use 'var' here instead of 'const'?

2 Answers

The project files are dated 2014 if that is any indication as to the age of the course

erick gonzalez
erick gonzalez
951 Points

the term "const" also means that the value will not, and connot change. So once you assign it a value, its pretty much permanent. "var" values can be changed.