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 447f690 commit 8676acdCopy full SHA for 8676acd
lesson_12/structs_ts/src/list_node.ts
@@ -2,7 +2,7 @@ export class ListNode {
2
val: number;
3
next?: ListNode;
4
5
- constructor(val: number = 0, next?: ListNode) {
+ constructor(val = 0, next?: ListNode) {
6
this.val = val;
7
this.next = next;
8
}
0 commit comments