ds-with-js
ds-with-js copied to clipboard
this.length() is what?
In src/lib/linkedList.js in line number 47, 68 and many other places what does 'this.length()' mean? It throws me an error saying: "TypeError: this.length is not a function"
And as per my understanding, 'this' refers to Linkedlist which is an object and objects do not have any .length property or .length() function, isn't it?