I tried to run this code, it only runs the first line then nothing...
console.log('1st line');
const promise1 = new Promise((resolve, reject) => {
resolve('Promise1 resolved');
});
promise1.then((result, err) => {
console.log(result);
});
console.log('last line');
Note: it works fine on chrome.
I tried to run this code, it only runs the first line then nothing...
Note: it works fine on chrome.