api call in js with json code example
Example: call json api javascript
$.getJSON(
"API URL HERE",
function (data){
console.log(data); // by printing to the console you can easely check all values in the console
//every api related code here...
}