tengo esto:En javascript, ¿cómo puedo llamar a un método de clase desde otro método en la misma clase?
var Test = new function() {
this.init = new function() {
alert("hello");
}
this.run = new function() {
// call init here
}
}
Quiero llamar init
dentro de plazo. ¿Cómo hago esto?
No hay clases o métodos de clase en JavaScript –
@ Chris Ballance Eso no es explícitamente * * cierto .. – austinheiman