Created linked list will be 11.2 .56 .12
head = push ( head , 12 ) ; head = push ( head , 56 ) ; head = push ( head , 2 ) ; head = push ( head , 11 ) ; document . write ( " " + " " + sumOfList ( head ) ) ;