This is the question and my solution in Javascript
You are given the pointer to the head node of a linked list and an integer to add to the list. Create a new node with t