• _cnt0@lemmy.villa-straylight.social
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    At least C has a working equals operator. Go on, tell me about ===, invite the ridicule. I bet I know more about JavaScript than you do. I hate it because I am intimately familiar with it.

    console.log(null==0)
    console.log(null>0)
    console.log(null>=0)
    
    console.log(0==[])
    console.log(0=='0')
    console.log('0'==[])
    
    // no equality comparison, but that shit is funny
    console.log("2"+"2"-"2")
    

    Any proper programming language wouldn’t even compile any of that nonsense.

    And something being widespread doesn’t mean it’s either right or good - look at religions.