From 146ec7877aa3858ba94cffd2d81e51d1d655e448 Mon Sep 17 00:00:00 2001 From: Konstantin Zaytsev Date: Tue, 19 Dec 2023 16:18:51 +0300 Subject: [PATCH] Update 4-order.js Add Promise.then() callback --- JavaScript/4-order.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/JavaScript/4-order.js b/JavaScript/4-order.js index d713cf6..80207bc 100644 --- a/JavaScript/4-order.js +++ b/JavaScript/4-order.js @@ -60,4 +60,12 @@ fs.readFile('./4-order.js', 'utf8', () => { console.log('callback #14 readFile'); }); +Promise.resolve().then(() => { + console.log('callback #15 Promise.then() callback'); +}); + +Promise.resolve().then(() => { + console.log('callback #16 Promise.then() callback'); +}); + console.log('main ended');