var dataGraph = new Array();
$.ajax({
url:"http://api.fixer.io/2016-01-01",
dataType: "jsonp",
success: function(data){
dataGraph.push(data.rates);
},
async: false
});
$("#data").html(JSON.stringify(dataGraph));
The array just appear empty even after I try to push data in. There's no error getting the data but it's just not pushing data into the array