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.