Function to prvar the nodes of the linked list
function printList ( start ) { var temp ; if ( start != null ) { temp = start ; do { document . write ( temp . data + " " ) ; temp = temp . next ; } while ( temp != start ) ; } }