Skip to content

Commit a40458c

Browse files
committed
Revert "done tp-pounds.js"
This reverts commit 12467cc. reverted commit
1 parent 12467cc commit a40458c

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Sprint-2/implement/vat.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,3 @@
88
// Given a number,
99
// When I call this function with a number
1010
// it returns the new price with VAT added on
11-
12-
13-
function addVatporcentage (price) {
14-
const vatIncluded = Number(price * 1.2); //converted the str into number
15-
console.log(typeof vatIncluded);
16-
return `Vat included ${vatIncluded}`;
17-
18-
}
19-
20-
console.log(addVatporcentage("30"));
21-
22-
/*
23-
This will return the new price with the vat included and also converted the string into number with the method Number()
24-
*/

0 commit comments

Comments
 (0)