Skip to main content

Timeline for Tips for golfing in JavaScript

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Feb 20, 2015 at 2:37 history wiki removed Doorknob
Jan 30, 2014 at 19:01 history edited ajax333221 CC BY-SA 3.0
added 64 characters in body
Jan 30, 2014 at 1:15 history edited ajax333221 CC BY-SA 3.0
added 334 characters in body
Jan 27, 2014 at 23:36 history edited ajax333221 CC BY-SA 3.0
I found some cases where method B is actually better than A
Jan 27, 2014 at 23:31 history edited ajax333221 CC BY-SA 3.0
I found some cases where method B is actually better than A
Nov 27, 2013 at 20:22 history edited ajax333221 CC BY-SA 3.0
bad examples, y*(x?1:-1) is simply (x?y:-y)
Nov 27, 2013 at 17:44 history edited ajax333221 CC BY-SA 3.0
added 22 characters in body
Nov 27, 2013 at 17:27 history edited ajax333221 CC BY-SA 3.0
after some time I got really into it, thanks for the original idea original poster :)
Dec 19, 2012 at 2:07 comment added Camilo Martin @ajax333221 Yes, actually the funny thing about code golfing to me is that most of the best tricks only work for that particular thing you're doing, and one feels so clever to find one of these corner cases with corner solutions :D By the way, you don't have to delete comments...
Dec 18, 2012 at 16:30 comment added ajax333221 @CamiloMartin you are right, also I now see the point in this answer, however a must be either 1 or 0 for it to work
Dec 18, 2012 at 12:07 comment added Camilo Martin @ajax333221 void 0 (it isn't a function, but a keyword) is not a value, it simply returns undefined.
Nov 29, 2011 at 6:03 history edited kba CC BY-SA 3.0
Fixed an inaccuracy - it doesn't return 42 if a=2, then it'll return 84, obviously.
Jun 9, 2011 at 15:05 history answered mellamokb CC BY-SA 3.0