Answers for "js fetch relative url"

1

js fetch relative url

fetch('/js/data.json') // <-- this path surprises me
  .then(response => response.json())
  .then(data => app.data = data)
Posted by: Guest on February-28-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language