xxxxxxxxxx
fetch('https://fakestoreapi.com/products?sort=price')
.then(res=>res.json())
.then(json=>console.log(json))
xxxxxxxxxx
<!-- Fakestore JSON API: -->
https://fakestoreapi.com/products/
https://fakestoreapi.com/products/1
https://fakestoreapi.com/products/categories
xxxxxxxxxx
fetch('https://fakestoreapi.com/products/')
.then(res=>res.json())
.then(json=>console.log(json))