Posted By

brandonjp on 07/23/10


Tagged

javascript js textmate this iteration loop for basics Learn conditionals learnthis stufftolearn


Versions (?)

learn this - js iteration conditionals i if else for in loops for each thing.length


 / Published in: Other
 

  1. // learn what this crap means
  2. if (!x) {
  3. var dthiss = 1;
  4. } else {
  5. dthiss = 2;
  6. };
  7.  
  8. for (var i = Things.length - 1; i >= 0; i--) {
  9. Things[i]
  10. };
  11.  
  12. for (var i = 0; i <= Things.length - 1; i++) {}
  13.  
  14. for items.each(function(item) {
  15.  
  16. });
  17.  
  18. // end learn
  19.  

Report this snippet  

You need to login to post a comment.