traversing the loop from any random node in the loop
function traverseLoop ( start ) { let curr = start ; do { document . write ( curr . data + " " ) ; curr = curr . abtr ; } while ( curr != start ) ; }