JSFiddle - React, Tailwind, and code Playground

by Hifni Nazeer

HTML

<input type="button" id="btn" value="Click Me"/>

JavaScript

//if the document is loaded fully
//http://headers.jsontest.com/
$(document).ready(
    function(){
         $("#btn").click(
             function(){
                 $.getJSON("headers.jsontest.com", 
                             function (json) {
                                 alert(json.result);
                                 $.each(json.list, 
                                        function (i, fb) {
                                            alert(fb.result);
                                        });
                              });    
             });
 });