Circular Singly Linked List | Insertion |  ; Creating a node dynamically . ; Assigning the data . ; Adjusting the links .
function addBegin ( last , data ) { if ( last == null ) return addToEmpty ( last , data ) ; var temp = new Node ( ) ; temp . data = data ; temp . next = last . next ; last . next = temp ; return last ; }