Reference no: EM132080212
You need to have the HTML separated from the Javascript. Also, You are visually-impaired, so please do not upload an image, because can't see it; and the screen reader won't read it to me.
Please write simple code, so that You can try to follow it. In Javascript, using JSFiddle, we are going to create a Doubly Linked List. The List will be made up of Nodes.
Each node will have the following properties; Node Properties id - A simple id for the node itself, content - A value (String) next - A pointer to the next node in the List (null for the last node). last - A pointer to the previous node in the List List Properties head - Pointer to the first node in the list length - Number of nodes in the list Next - you will populate your list with 5 nodes with content A, B, C, D, E. You will also create a print function for the list that will print the nodes in order. You will need to create some functions to support this functionality. You will now need to write an interface to allow the user to add nodes to the end of the list.
There should be a single text box to enter the Node content, and a button "Add to List". When the user adds a node to the list, then you should add the node with the content to the end of the list and print the new list. I need to have the HTML separated from the Javascript. Also, I am visually-impaired, so please do not upload an image, because I can't see it; and the screen reader won't read it to me. Please write simple code, so that I can try to follow it. In Javascript, using JSFiddle, we are going to create a Doubly Linked List.
The List will be made up of Nodes. Each node will have the following properties; Node Properties id - A simple id for the node itself, content - A value (String) next - A pointer to the next node in the List (null for the last node). last - A pointer to the previous node in the List List Properties head - Pointer to the first node in the list length - Number of nodes in the list Next - you will populate your list with 5 nodes with content A, B, C, D, E.
You will also create a print function for the list that will print the nodes in order. You will need to create some functions to support this functionality.
You will now need to write an interface to allow the user to add nodes to the end of the list. There should be a single text box to enter the Node content, and a button "Add to List". When the user adds a node to the list, then you should add the node with the content to the end of the list and print the new list.