I want to make a simple list linked with javascript and for that, I need to make a variable of the same type of the class, in Java I did it like this:
class Nodo{
public char datoNodo;
public Nodo sgte;
public Nodo(char dato){
this.dato=dato;
}
}
Since javascript can not specify the type of variable, it is only specified with 'var'.