JavaScript AJAX Basics (retiring) Programming AJAX Processing JSON Data

Erica Saunders
Erica Saunders
Full Stack JavaScript Techdegree Student 13,578 Points

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

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 45,971 Points

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.