[javascript] fetch and then...

Viewer

copydownloadembedprintName: fetch and then...
  1. // load the configuration
  2. const configFile = await fetch("./src/config.json", {})
  3.     .then(response => response.json())
  4.     .then(JSON.parse(response));

Editor

You can edit this paste and save as new:


File Description
  • fetch and then...
  • Paste Code
  • 24 Mar-2023
  • 156 Bytes
You can Share it: