Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. for (const e of a)
  2.  
  3. for (const i = 0; i < a.length; i += 1)
  4.  
  5. {
  6. const __it = a[Symbol.iterator]();
  7. let __res;
  8. while ((__res = __it.next()) && !__res.done) {
  9. const e = __res.value;
  10. }
  11. }
  12.  
  13. {
  14. const i = 0;
  15. while (i < a.length) {
  16. i += 1;
  17. }
  18. }
  19.  
  20. for (var i = 0, otherVar = ""; i < [1,2,3,4].length; i += 1){
  21. console.log(otherVar)
  22. otherVar = "If otherVar was initialized on each iteration, then you would never read me.";
  23. }
  24.  
  25. for(const i = 0;;){ break }
  26. for(const i = 0; i < 10;){ break; }
  27.  
  28. for(const i = 0;;){ ++i; break; }
  29. for(const i = 0;;++i){ if(i > 0) break; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement