Sample Code
$( document ).ready(function() {
    getData();
    LoadData();
});
function getData() {
        alert('getData');
        Data='';
        $.ajax({
            type: "GET",
            url: "http://localhost:34126/SAL/FCDataService.svc/GetMonthlyInvValue",
            dataType: "json",
            contentType: "application/json; charset=utf-8",
            data: {},
            processdata: true,
            async: false,
            success: function (json) {
                Data= json;
               alert('Data:' + Data);
            },
            error: function (e) {
                alert('error ' + e.status + '  ' + e.responseText);
            }
        });
}
function LoadData() {
        alert('LoadData');
    }
The expected Output: getData Data:{"label": "Jan", "Value": "1"} LoadData
The actual Output : getData LoadData Data:{"label": "Jan", "Value": "1"}
What am I doing wrong.Please help me!!
 
     
     
    