There was an error while loading. Please reload this page.
1 parent 647c50a commit 29409f8Copy full SHA for 29409f8
1 file changed
Sprint-2/3-mandatory-interpret/1-percentage-change.js
@@ -25,6 +25,7 @@ console.log(`The percentage change is ${percentageChange}`);
25
26
// d) Identify all the lines that are variable declarations
27
// They are 1,2 and 7,8
28
+
29
// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
30
// It is using Number to make the string into a number but in order to do that the string needs to contain numerical letters only.
31
// So it then uses in the () to remove all of the , with nothing using the replaceAll function so that 10,000 becomes 10000
0 commit comments