Skip to main content

Timeline for Print numbers from 1 to 10

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Jun 16, 2017 at 7:53 comment added Kruga @ericw31415 codegolf.meta.stackexchange.com/a/2422/56627
Jun 15, 2017 at 21:04 comment added ericw31415 Doesn't the code have to be embedded in a function?
Aug 2, 2016 at 14:43 comment added kamoroso94 Too bad the question stipulates that the order must be ascending, otherwise you could've saved a byte by using a decrementing while loop instead of the for loop like so i=10;while(i)alert(i--).
Jul 21, 2016 at 14:03 history edited Kruga CC BY-SA 3.0
added 9 characters in body
Jul 21, 2016 at 14:00 comment added Martin Ender Welcome to PPCG! I think you can save a byte by doing alert(i++) (and removing the other i++).
Jul 21, 2016 at 13:48 review First posts
Jul 21, 2016 at 14:05
Jul 21, 2016 at 13:46 history answered Kruga CC BY-SA 3.0