Skip to main content

Timeline for Tips for golfing in JavaScript

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Feb 20, 2015 at 2:37 history wiki removed Doorknob
Dec 19, 2013 at 14:14 comment added Camilo Martin @user113215 You're right, awesome! :) I've edited the answer to include an example.
Dec 19, 2013 at 14:14 history edited Camilo Martin CC BY-SA 3.0
An example for the not-so-intuitive (at least to me) fact that the nested loops can have different lengths! (and how)
Dec 19, 2013 at 0:38 comment added quietmint @CamiloMartin No, the loops don't need to be of equal length. The resulting number of iterations is i*j and the division/modulus operators retrieve the individual values of i and j.
Dec 18, 2012 at 13:27 history edited Camilo Martin CC BY-SA 3.0
typo.
Dec 18, 2012 at 13:26 comment added Camilo Martin (I've edited a) minor typo, but very clever! Note that this will only work on nested loops of same length (unless I'm wrong).
Mar 27, 2012 at 7:34 history answered Kae Verens CC BY-SA 3.0