Instantiating object in a constructor [closed]

1

Good afternoon.

I would like to know if it is possible to instantiate an object in the javascript constructor.

constructor{
  this.objDificultControll = new dificultControll();
}

I have the following error

  

dificControll is not defined

    
asked by anonymous 19.07.2018 / 17:02

0 answers