addLast(data, ref) {
        this.JsavLinkedList.addLast(data);
        this.listOfNodesReferences.push(ref.toString());
        this.size++;
    }
/**
     * Creates and adds a new node at the end on the list.
     * @param {Object} data The created node data
     * @param {String} ref The created node memory reference.
     */
Creates and adds a new node at the end on the list.
@param {Object} data The created node data
@param {String} ref The created node memory reference.
Creates and adds a new node at the end on the list . @param { Object } data The created node data @param { String } ref The created node memory reference .
addLast(data, ref) {
        this.JsavLinkedList.addLast(data);
        this.listOfNodesReferences.push(ref.toString());
        this.size++;
    }
addLast ( data , ref ) { this . JsavLinkedList . addLast ( data ) ; this . listOfNodesReferences . push ( ref . toString ( ) ) ; this . size ++ ; }
Creates and adds a new node at the end on the list.
Creates and adds a new node at the end on the list .