You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// trying to create an age variable and then reassign the value by 1
2
2
3
-
constage=33;
3
+
letage=33;
4
4
age=age+1;
5
+
console.log(age);
6
+
7
+
// Changed const to let because the variables value need to change during the program. const creates a fixed reference that cannot be reassigned. but let allows updating the variable which is required when incrementing or modifying values.
0 commit comments