Hmm
now I'm intrigued! What kind of sorcery you've used for the loop? SVGs?
-
-
-
A magician never reveals their secrets
(It's text-on-a-path, just conveniently twisted around to meet itself in the middle. Compression artifacts are great for obscuring shoddy seams!)
End of conversation
New conversation -
-
-
I guess it is a very simple rule. JavaScript uses the type of first term for the comparison. So JavaScript will try to convert the second term to this type. Thus, we compare a < b (String), b < c (Number), c < a (String).
-
IIRC numeric values take precedence over strings here, so in a < b the a is coerced to a number. But yeah, otherwise that's the gist of it
End of conversation
New conversation -
-
-
I suspect Bach just came up with something based on your tweet, Per Tonos they say.
- End of conversation
New conversation -
-
-
It works because the last one compares strings, while the others cast strings to numbers, right?
- End of conversation
New conversation -
-
-
I guess it is a matter of comparing numbers or strings.
-
Indeed: if one operand is a string and the one is a number then they're both compared as numbers.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.