I thought the process was stuck waiting for resolve. But it returned "Hello, A" and process exit.
I can't understand why it just exited.
I know it just solve if i just add resolve or reject.
But i want something deep.
function funA(name) {
return new Promise(function(resolve, reject) {
console.log("Hello, " + name);
});
}
(async() => {
await funA("A");
await funA("B");
})();
// Hello, A
// exit
Resolve