$.get("").then(function(data) javascript code example Example: .then javascript const promise2 = doSomething().then(successCallback, failureCallback);