Skip to content

Commit a96b47e

Browse files
gave the right programming term for the term that belongs in the blank
1 parent 76151fd commit a96b47e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ console.log(`The percentage change is ${percentageChange}`);
3939

4040
// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
4141
/* The expression Number(carPrice.replaceAll(",","")) is converting the string value of carPrice, which contains a comma, into a number. The replaceAll() method is used to remove all commas from the string, and then the Number() function is used to convert the resulting string into a number. This allows for mathematical operations to be performed on the value of carPrice without any issues caused by the presence of commas in the string.*/
42+
// a comma is missing between the two arguments in the replaceAll() method, which is causing a syntax error. The correct syntax should be replaceAll(",", "")., the programming term that belongs in the blank is call Arguments as they are actual values passed when the function is called:

0 commit comments

Comments
 (0)