Easy
What will be the output of the following JavaScript code?
function asyncFunc() {
return new Promise((resolve) => {
setTimeout(() => {
resolve('Hello');
}, 1000);
});
}
asyncFunc().then((value) => {
console.log(value);
});
Author: Vincent CotroStatus: PublishedQuestion passed 112 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Javascript