js example with .then Example: .then javascript const promise2 = doSomething().then(successCallback, failureCallback);