Skip to main content
Keen's user avatar
Keen's user avatar
Keen's user avatar
Keen
  • Member for 10 years, 7 months
  • Last seen more than a month ago
revised
Loading…
comment
Random script that isn't actually random
The comma in that context is technically an operator, rather than a separator. ecma-international.org/ecma-262/5.1/#sec-11.14 And it is terrible. Unless you want your code to be hard to read. As you do here. So, kudos.
comment
Return the flipped version of a number
@Rynant Yeah, 1, 3, 6, and 9 really throw my definition off (foolish positive bias!). I'll pay more attention from here on out. Fortunately, everything but 4 is explicitly spelled out in the challenge. So the rule is consistent, but with an extra layer of complexity.
comment
Return the flipped version of a number
@kernigh I think it's meant to be a reflection across a horizontal axis.
answered
Loading…
revised
Random script that isn't actually random
added 390 characters in body
Loading…
comment
Random script that isn't actually random
The trick is actually that Math.random cares nothing for our meager parameters. It chooses numbers its own way. the |0 is correctly rounding the unexpected result, and so is not a source of any trickery.
comment
Random script that isn't actually random
This is delightful. Finally, a use for that terrible, terrible operator.
answered
Loading…
revised
Largest number in ten bytes of code
Updated the first result. Added spaces to the numbers to make them easier to read.
Loading…
revised
Largest number in ten bytes of code
Added a new answer, conditional on the legality of clock-reading.
Loading…
comment
Largest number in ten bytes of code
Wait, reading the clock doesn't count as an input? We can do that? I guess I'll exploit it after all.
awarded
revised
Loading…
comment
Print largest integer you can with the fewest characters
@kinokijuf typeof null == typeof Math
comment
Largest Number Printable
@WallyWest Why even use Math.E when Math.PI is larger? p=Math.PI;(''+p+p+p+p).replace(/\./g,"")
revised
Loading…
revised
Largest number in ten bytes of code
added 2 characters in body
Loading…
answered
Loading…
comment
Largest number in ten bytes of code
At that rate, we might consider 9 999 999 999 to be a lower bound on results.