Skip to content

Commit 2341584

Browse files
committed
Type JSDoc comment infos
1 parent 886ca9d commit 2341584

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { calculateTax } from './tax';
22

3-
let tax = calculateTax();
3+
let tax = calculateTax(1000);
44
console.log(tax)
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
// @ts-nocheck
1+
/**
2+
* Calculate income tax.
3+
* @param {number} income - Net salary after expenses.
4+
* @returns {number}
5+
*/
26
export function calculateTax(income){
37
return income * .3
48
}

Section8-Integration-with-JavaScript/src/typejsdoc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
* @returns {number}
55
*/
66

7-
export function calculateTax(income) {
8-
return income * .3
9-
}
7+
// export function calculateTax(income) {
8+
// return income * .3
9+
// }

0 commit comments

Comments
 (0)