Skip to content

Commit c389da7

Browse files
committed
1.js updated template
1 parent 4b28f8f commit c389da7

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// trying to create an age variable and then reassign the value by 1
22

3-
const age = 33;
3+
let age = 33;
44
age = age + 1;
5+
//let allows the variable to be reassigned later.
6+
//const is only for values that should never change.

0 commit comments

Comments
 (0)