new Promise(function (resolve, reject) {
console.log("calling ajax");
$.ajax({
method: "GET",
url: "https://jsonplaceholder.typicode.com/todos "
}}
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
new Promise(function (resolve, reject) {
console.log("calling ajax");
$.ajax({
method: "GET",
url: "https://jsonplaceholder.typicode.com/todos "
}}