skip to Main Content

JSON not returning the actual data from the url – Jquery ajax

I am trying to build a basic covid19 website. the code I am using is only returning [object Object] in the actual data. What I am doing wrong here? <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $.getJSON("https://api.covid19api.com/summary", function(result){…

VIEW QUESTION
Back To Top
Search