Skip to content

Commit d8c52f7

Browse files
committed
use "let" for reassigning age variable
1 parent 1716943 commit d8c52f7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • Sprint-2/2-mandatory-errors

‎Sprint-2/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+
6+
let age = 33;
7+
age = age + 1;

0 commit comments

Comments
 (0)