What is the difference between .resolve() and .promise()?
Both resolve() and promise() are methods on the jQuery Deferred object. First a snippet from the jQuery documentation about Deferred: One model for understanding Deferred is to think of it as a chain-aware function wrapper. The deferred.then(), deferred.done(), and deferred.fail() methods specify the functions to be called and the deferred.resolve(args) or deferred.reject(args) methods “call” the … Read more