Variables


#1

When would someone use a constant variable? Isn’t the definition of variable to change?
https://www.codecademy.com/courses/learn-javascript-introduction/lessons/variables/exercises/let?action=lesson_resume&course_redirect=introduction-to-javascript


#2

well, if i have a list/array with the days of a week (or months of the year) they are not going to change, so then using a const is very good option


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.