There was an error while loading. Please reload this page.
1 parent 886ca9d commit 2341584Copy full SHA for 2341584
Section8-Integration-with-JavaScript/src/index.ts
@@ -1,4 +1,4 @@
1
import { calculateTax } from './tax';
2
3
-let tax = calculateTax();
+let tax = calculateTax(1000);
4
console.log(tax)
Section8-Integration-with-JavaScript/src/tax.js
@@ -1,4 +1,8 @@
-// @ts-nocheck
+/**
+ * Calculate income tax.
+ * @param {number} income - Net salary after expenses.
+ * @returns {number}
5
+ */
6
export function calculateTax(income){
7
return income * .3
8
}
Section8-Integration-with-JavaScript/src/typejsdoc.js
@@ -4,6 +4,6 @@
* @returns {number}
*/
-export function calculateTax(income) {
- return income * .3
9
-}
+// export function calculateTax(income) {
+// return income * .3
+// }
0 commit comments