Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/JavaScript
/ clean
Method
clean
Data-Structures/Linked-List/SinglyLinkedList.js:232–236 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
230
231
// make the linkedList Empty
232
clean() {
233
this.headNode = null
234
this.tailNode = null
235
this.length = 0
236
}
237
238
// Method to get the LinkedList
239
get() {
Callers
1
SinglyLinkedList.test.js
File · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected