We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12467cc commit a40458cCopy full SHA for a40458c
Sprint-2/implement/vat.js
@@ -8,17 +8,3 @@
8
// Given a number,
9
// When I call this function with a number
10
// 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