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!)
Kraj razgovora
Novi razgovor -
-
-
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
Kraj razgovora
Novi razgovor -
-
-
I suspect Bach just came up with something based on your tweet, Per Tonos they say.
- Kraj razgovora
Novi razgovor -
-
-
It works because the last one compares strings, while the others cast strings to numbers, right?
- Kraj razgovora
Novi razgovor -
-
-
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.
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.