1let url = 'https://example.com';
2
3fetch(url)
4.then(res => res.json())
5.then((out) => {
6 console.log('Checkout this JSON! ', out);
7})
8.catch(err => { throw err });
1$.getJSON(
2 "API URL HERE",
3 function (data){
4 console.log(data); // by printing to the console you can easely check all values in the console
5 //every api related code here...
6 }