Skip to content

Commit 0d51c23

Browse files
authored
Update 1.js
1 parent 0463851 commit 0d51c23

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
const { cityOfBirth } = require("./2");
44

55
let age = 33;
6-
age = age + 1;
76
console.log(age);
87
// Currently trying to print the string "I was born in Bolton" but it isn't working...
98
// what's the error ?
109
console.log(`I was born in ${cityOfBirth}`);
1110

12-
// Changed const to let because the variables value need to change during the program. const creates a fixed reference that cannot be reassigned. but let allows updating the variable which is required when incrementing or modifying values.
11+
// Changed const to let because the variables value need to change during the program. const creates a fixed reference that cannot be reassigned. but let allows updating the variable which is required when incrementing or modifying values.

0 commit comments

Comments
 (0)