Skip to content

Commit 6e76b0d

Browse files
committed
Differentiated const and let
1 parent 5dab8a6 commit 6e76b0d

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
//const age = 33;
44

5-
// we need to replace "const" with "let"
5+
// we need to replace "const" with "let", in javascript "const" is usd for variable
6+
// that will nor change / will be kept constant troughout the code, where is "let"
7+
// lets us to reassign variable later as we have done in the lines below the variabel age
8+
// gets updated by one...
69

710
let age = 33;
811
age = age + 1;

0 commit comments

Comments
 (0)