Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1b48e80

Browse files
declare variable
1 parent 92f6462 commit 1b48e80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎data-structures/linked-list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ function LinkedList() {
1111
}
1212

1313
LinkedList.prototype.add = function (value) {
14-
let node = new Node(value)
15-
current = this.head
14+
let node = new Node(value),
15+
current = this.head
1616

1717
if (!current) {
1818
this.head = node

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /