do promises get executed immediately or after then has been called? code example
Example: .then javascript
const promise2 = doSomething().then(successCallback, failureCallback);
const promise2 = doSomething().then(successCallback, failureCallback);