Skip to content

Commit 94e1886

Browse files
authored
Update 1.js
1 parent 5df9b40 commit 94e1886

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Sprint-1/2-mandatory-errors

Sprint-1/2-mandatory-errors/1.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ let age = 33;
66

77
age++; // Increases age by 1
88

9+
console.log(age); // Output: 34
10+
911

1012

11-
// 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

Comments
 (0)