JavaScript async function not executing in module
<html>
<body>
<script type="module">
function helloSync()
{
alert("sync: This alert always happens");
}
async function helloAsync()
{
alert("async: This alert never happens");
}
helloSync();
helloAsync();
</script>
</body>
</html>
+3
source to share
No one has answered this question yet
Check out similar questions: