• + 0 comments

    Here is a recursive solution in JavaScript:

    function reversePrint(llist) {
        if (!llist) {
            return;
        }
        
        reversePrint(llist.next)
        console.log(llist.data);    
    }