Skip Navigation

User banner
Posts
0
Comments
22
Joined
2 yr. ago

  • I'm starting to think JS maintainers have a thing against mathematicians

  • WANNA PLAY CHESS YOU CHEEKY PIECE OF ZEE?

    🟥🟧🟧🟨🟧🟨🟨🟩
    🟧🟨🟨🟩🟨🟩🟩🟦
    🟧🟨🟨🟩🟨🟩🟩🟦
    🟨🟩🟩🟦🟩🟦🟦🟪
    🟧🟨🟨🟩🟨🟩🟩🟦
    🟨🟩🟩🟦🟩🟦🟦🟪
    🟨🟩🟩🟦🟩🟦🟦🟪
    🟩🟦🟦🟪🟦🟪🟪🟫

  • JS null and undefined shenanigans


    basically:

    1. bigger an lesser comparison types convert null to zero, so is zero bigger or lesser than zero? no
    2. == is fucky and to it null only equals undefined and undefined only equals null (and themselves), so no
    3. is zero bigger than or equal to zero? yeah