Random method
Mon Aug 15 2022 10:51:16 GMT+0000 (Coordinated Universal Time)
Saved by
@ale_figure8
class Singleton {
constructor(){
this.random = Math.random();
if(Singleton.instance){
return Singleton.instance;
}
console.log('instance created');
Singleton.instance = this;
}
}
content_copyCOPY
Comments