theory

joined 1 year ago
 

Explanation: it's mostly due to how js does type conversion. for the Ls, it's

[] is an empty array ![] is treated as false combining a boolean with the empty array returns "false" as a string (so true + [] = "true", false + [] = "false") ! + [] is treated as true ! + [] + ! + [] is treated as 2 since true + true = 1 + 1 = 2 so you have "false"[2], which is l for the o it's [] is an empty array [] + {} returns "[object Object]" as a string ({} + [] returns 0) ![] is false !![] is true +!![] casts it to an integer so that part is "[object Object]"[1], which returns "o"

 

It'd be worthwhile :)

[–] theory@lemmy.world 1 points 1 year ago

/u/Ruud official response?

[–] theory@lemmy.world 1 points 1 year ago (1 children)

None at all. I want to be able to interact with any server.

[–] theory@lemmy.world 0 points 1 year ago (7 children)

Is this server going to keep its federation blocklist empty? I am likely going to move here from another instance because they have defederated a few servers now