what happen if i add await to non async function in js
function abc(){
console.log("ABC");
}
await abc();
console can print ABC successfully. is javascript wrap the function with promise automatically??
1
what happen if i add await to non async function in js
function abc(){
console.log("ABC");
}
await abc();
console can print ABC successfully. is javascript wrap the function with promise automatically??
1