Przykład LinkedList w JavaScript

const list = {
    head: {
        value: 1
        next: {
            value: 5                                             
            next: {
                value: 7
                next: {
                    value: 13
                    next: null	
                    }
                }
            }
        }
    }
};
/*each of them has a value and a next that is also a nodelist(or is null)*/
Javasper