could you please tell me why then
function not call ?I try to fetch json
data from file
here is my code
https://plnkr.co/edit/3APaLWC7QkNuvxHirL14?p=preview
function abc(){
return check();
}
function check(){
return $.ajax({
url:'data.json',
success: function (json) {
return json;
}
})
}
$(function(){
abc().then(function(d){
console.log(d)
})
})