I'm making a simple list with nodes and I want to add an attribute of the same type to the class. When I was programming in Java I did it like that:
public class Node {
public char date;
public Node next;
public Node(char date)
{
this.date = date;
}
}
But, in javascript it only allows me to use var variables. How do I create a variable of the same type of class that I want?
I remain attentive to comments...