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


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.