The constructed linked lists are : a : 5 -> 6 -> 7 b : 2 -> 3 -> 3
var a = null ; a = push ( a , 7 ) ; a = push ( a , 6 ) ; a = push ( a , 5 ) ; var b = null ; b = push ( b , 3 ) ; b = push ( b , 3 ) ; b = push ( b , 2 ) ; document . write ( compare ( a , b ) ) ;