Skip to content

Commit 2be3bd2

Browse files
author
AmiyahJo
committed
feat: typescript versoin of creating a ListNode
1 parent b0c63c4 commit 2be3bd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lesson_12/structs_ts/src/lesson12.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export class Lesson12 {
1010
const evenPoints = 0;
1111

1212
class ListNode {
13-
costructor(current) {
13+
current: null | undefined;
14+
costructor(head = null) {
1415
this.current = head;
15-
this. =
1616
}
1717
}
1818
// ListNode current = head;

0 commit comments

Comments
 (0)