with JavaScript
at the end of this lesson, you will be able to
var singlyLinkedList = {
data: 'Julia Childs',
next: {
data: 42,
next: {
data: 'footer',
next: null
}
}
};
var node1 = {data: 'this is node 1', next: null, pre: null};
var node2 = {data: 'this is node 2', next: null, pre: null};
var node3 = {data: 'this is node 3', next: null, pre: null};
node1.next = node2;
node2.prev = node1;
node2.next = node3;
node3.prev = node2;
https://en.wikipedia.org/wiki/Linked_list#Singly_linked_list