Skip to content

Commit 3a5af8c

Browse files
authored
Update comments for error identification in percentage change
Commented out lines for debugging and error identification.
1 parent f35bfdc commit 3a5af8c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ console.log(`The percentage change is ${percentageChange}`);
2121
//Line 5
2222
//Number(...)
2323
//Line 5
24-
//Line 9 ,console.log
24+
//priceAfterOneYear.replaceAll(",", "")
25+
//Line 10 ,console.log
2526

2627
// 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?
2728
//error:line 5,SyntaxError: missing ) after argument list,missing a comma between the two arguments.

0 commit comments

Comments
 (0)