This example uses quickjs-emscripten.
See the output in browser developer console.
Actual code:
const txt = await fetch('https://httpbin.org/anything'); console.log(txt);