Skip to content

Commit a50c7a7

Browse files
committed
TypeError for 1.js
Given comment and suggestion
1 parent cf5f0dc commit a50c7a7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

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

33
const age = 33;
44
age = age + 1;
5+
6+
// this gives a TypeError
7+
// age is already a const at the start and calling it again just as age wont work, naming it like "older" would work better:
8+
9+
// const age = 33;
10+
// let older = (age + 1);
11+
// console.log(older)
12+

0 commit comments

Comments
 (0)