getlog2() { console.log("222"); }, getlog3() { return new Promise((resolve, reject) => { setTimeout(() => { console.log("333"); resolve("as"); }, 4000); }); }, getlog4() { return new Promise((resolve, reject) => { setTimeout(() => { console.log("444"); resolve("as"); }, 2000); }); }, async getAllData() { await this.getlog2(); var tt= await this.getlog3(); await this.getlog4(); console.log("jiji"); console.log("jiji"); }