Timeline for Javascript: Create a 10x10 array of 1s
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 25, 2013 at 15:17 | history | edited | Brigand | CC BY-SA 3.0 | added 107 characters in body |
| Jan 25, 2013 at 14:49 | comment | added | mellamokb | Note that for is almost always preferable to while when golfing. The basic statement is the same length (while() vs for(;;)), but for gives you more flexibility. In this case, you could put x=[] in the initializer of the for and save one character. | |
| Jan 25, 2013 at 14:16 | history | answered | Brigand | CC BY-SA 3.0 |