Skip to content

Commit 2e91aea

Browse files
authored
Clarify error message and variable reassignment comments
Updated comments to clarify error details and variable reassignment.
1 parent 6d264c2 commit 2e91aea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ console.log(`The percentage change is ${percentageChange}`);
2424
//Line 9 ,console.log
2525

2626
// b) Run the code and identify the line where the error is coming from - why is this error occurring? How can you fix this problem?
27-
//missing a comma between the two arguments.
27+
//error:line 5,SyntaxError: missing ) after argument list,missing a comma between the two arguments.
2828
// c) Identify all the lines that are variable reassignment statements
2929
//carPrice = Number(carPrice.replaceAll(",", ""));
3030
//priceAfterOneYear = Number(priceAfterOneYear.replaceAll(",", ""));

0 commit comments

Comments
 (0)