how to await javascript fetch code example
Example: javascript async fetch file html
async function () {
element.innerHTML = await (await fetch('./filetofetch.html')).text();
}
async function () {
element.innerHTML = await (await fetch('./filetofetch.html')).text();
}