Skip to content

Commit 34357e2

Browse files
committed
Identified variable reassignment statements
1 parent e3fabaf commit 34357e2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Sprint-2/3-mandatory-interpret/1-percentage-change.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ console.log(`The percentage change is ${percentageChange}`);
1717
// The error message in the terminal tells me there is a syntax error on line 5. There is a comma missing separating the two arguments. I can fix the problem by adding a comma. The console now prints "The percentage change is 14.57".
1818

1919
// c) Identify all the lines that are variable reassignment statements
20+
// There are 2 variable reassignment statements in this file carPrice and priceAfterOneYear as both were first declared on line 1 and 2 using the let keyword before being reassigned on lines 4 and 5.
2021

2122
// d) Identify all the lines that are variable declarations
2223

0 commit comments

Comments
 (0)