Accès à la fonction déclarée constructeur extérieur mais à l'intérieur de la classe

  
class Person
{
constructor(name)
{
    this.name = name;

this.hello();
}

hello()
{
    alert("hello");
}

}
 
/*if the function is declared outside the constructor, access it with this inthe constructor*/
Javasper