Advertisement
Guest User

inserer un objet dans une constante après un fetch en js

a guest
Dec 14th, 2023
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const url ="page_de_jeu.php"
  2. fetch(url)
  3. .then (resp => resp.json())
  4. .then (data => console.log(data))
  5. const resultat = data;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement