For example:
What does
this.head = this.tail = new Node(value)
do? How does javascript interpret this line?
Is this the same as writing:
this.head = new Node(value);
this.tail = new Node(value);
If so, is there any limitation on when and where this one line approach can be used?