Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. p.then(function(){
  2. p.then(function(){
  3. console.log('C');
  4. });
  5. console.log('A');
  6. });
  7.  
  8. p.then(function(){
  9. console.log('B');
  10. });
  11.  
  12. //A B C
  13.  
  14. // here 'C' cannot interrupt and precede 'B' by virtue of how promises are defined to operate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement