Skip to content

Commit fa0ebc7

Browse files
committed
update: Clarify age variable reassignment and correct declaration to 'let' in sprint -1 of 1.js
1 parent 3425e3b commit fa0ebc7

File tree

1 file changed

+3
-0
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22

33
const age = 33;
44
age = age + 1;
5+
console.log(age); // Output: 34
6+
// The code above declares a variable age with an initial value of 33.
7+
// It then reassigns the value of age by adding 1 to its current value, so the declaration must be using 'let' keyword.

0 commit comments

Comments
 (0)