JSFiddle - React, Tailwind, and code Playground
by Sahin Deniz
JavaScript 1.7
class LinkShortener{
constructor(){
(this.dene());
}
async dene(){
let as = this.u();
console.log(as);
}
async u(){
let a= "";
a= await this.uret();
return a;
}
uret(){
return new Promise(resolve=>{
setTimeout(()=>{
resolve("Hello");
}, 2000);
});
}
}
let l= new LinkShortener();