es6 async syntax code example
Example 1: script async syntax
<script src="demo_async.js" async></script>
Example 2: define async function in node js
async function name([param[, param[, ...param]]]) {
statements
}
<script src="demo_async.js" async></script>
async function name([param[, param[, ...param]]]) {
statements
}