April 2018
Beginner
226 pages
4h 47m
English
Though traditionally a callback is the most widely used and often the best way to serve async behavior, it still fails to adhere to some standard requirements for code patterns. A few of the shortcomings faced are as follows:
$.getJSON('http://localhost:3300/',(jsonData)=>{ console.log("jsonData", jsonData); return jsonData; })
The return statement return jsonData; in the previous case makes no sense as to where it goes.
Read now
Unlock full access