Skip to content

Commit a7ab41d

Browse files
Effect changes with the answers given.
1 parent 9923e05 commit a7ab41d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,14 @@ console.log(`The percentage change is ${percentageChange}`);
2020
// d) Identify all the lines that are variable declarations
2121

2222
// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
23+
24+
25+
// a) 5 function calls. 2 in line 4, 2 in line 5, and 1 in line 10.
26+
27+
// b) SyntaxError: missing ) after argument list. There is a missing comma after argument. It can be fixed by adding a comma.
28+
29+
// c) line 4 and 5.
30+
31+
// d) line 1,2, 7, and 8.
32+
33+
// e) The expression is used to remove commas from the string and convert it into a number so it can be used in calculations.

0 commit comments

Comments
 (0)