Skip to content

Commit bb12ae4

Browse files
committed
prettier
1 parent ab08eb8 commit bb12ae4

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ let carPrice = "10,000";
22
let priceAfterOneYear = "8,543";
33

44
carPrice = Number(carPrice.replaceAll(",", ""));
5-
priceAfterOneYear = Number(priceAfterOneYear.replaceAll("," ,""));
5+
priceAfterOneYear = Number(priceAfterOneYear.replaceAll(",", ""));
66

77
const priceDifference = carPrice - priceAfterOneYear;
88
const percentageChange = (priceDifference / carPrice) * 100;
@@ -21,7 +21,6 @@ console.log(`The percentage change is ${percentageChange}`);
2121

2222
// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
2323

24-
2524
/* SOLUTION
2625
2726

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ console.log(result);
2424

2525
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
2626

27-
2827
/* SOLUTION
2928
3029
a) **How many variable declarations are there in this program?**
@@ -67,4 +66,4 @@ For negative or non-integer values, the output may not make sense. Also, the out
6766
6867
6968
70-
*/
69+
*/

Sprint-1/3-mandatory-interpret/3-to-pounds.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ Outputs the formatted price in pounds and pence (e.g., "£3.99").
4848
4949
5050
*/
51-

0 commit comments

Comments
 (0)