Skip to content

Commit 32e6d67

Browse files
committed
edit the comment line by the result from the code
1 parent fc798b1 commit 32e6d67

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ const percentageChange = (priceDifference / carPrice) * 100;
1010
console.log(`The percentage change is ${percentageChange}`);
1111

1212
//1. There are 5 function calls in line 4 , 5 and 10
13-
// * number()and the second one is .replaceall() in line 4
14-
// * number() and the second one is .replaceall()in line 4
13+
// * number()and the second one is .replaceAll() in line 4
14+
// * number() and the second one is .replaceAll()in line 4
1515
// * console.log()
1616
// 2. The error is coming from the line 5, because there was no comma in the replaceAll() method .
17-
// 3. line 4 and 5 are the variable reassignment statments.
18-
// 4. line 1 ,2 ,7 and 8 are lines where variable declarions happened
17+
// 3. line 4 and 5 are the variable reassignment statements.
18+
// 4. line 1 ,2 ,7 and 8 are lines where variable declarations happened
1919
// 5. *The method .replaceAll() in line 4 is replacing the coma (,) with nothing("") in the "10,000" and the output is "10000",
2020
// the number() function converts the string "10000" into a number.
2121
// *The method .replaceAll() in line 4 is replacing the coma(,) with nothing("") in the "8,543" and the output is "8543"

‎Sprint-2/3-mandatory-interpret/2-time-format.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ console.log(result);
2222
//E. It represents the duration of the movie.movieLength/movieDuration.
2323

2424
//F. No it doesnt work for all different values , I experimented it with -ve numbers and decimals.It doesnt
25-
// give the desired output for example if
25+
// give the desired output. For example if
2626
// const movieLength = -60;
2727
// result = 0:-1:0, there is no -ve value in time
2828
// if const movieLength = 90.5;
29+
// result = 0:1:30.5 the out put is decimal second.

0 commit comments

Comments
 (0)