18
gambhir
2y

JS is too funny 😂

Comments
  • 8
    🤣🤣🤣🤣🤣🤣🤣🤣
    JavaScript is such a terrible language that a typecasting framework had to be created to make sure that this shit never happens.
  • 9
    @sariel except the dumb fucks fucked that up and allowed 'any' as a type and now we have a framework for types without types, welcome to the full circle of JS bullshit.
  • 7
    Devs:
    But the equality relation has to be transitive!

    JavaScript:
    Transi… what? Dude, I am the most popular programming language in the world! Fuck off with your logic!
  • 0
    @C0D4

    That was need to easy transition from old js projects to ts
  • 1
    @shahidcodes "easy transition" sounds alot like "lazy development".

    Like my great grandpa used to tell me, "when you're transitioning to typescript make sure you just use it when it's convenient."
  • 2
    Javashit is like php, but in a suboptimal way of it haha
  • 1
    Let's be real here. If anything in your code relies in equality that checks for anything in this meme you've got bigger issues than js
  • 0
    0 == “0” => the char “0” means 0
    0 == [] => the array [] has 0 length
    “0” == [] => the array [] equals the (char) array [‘0’], or as we like to call it the string “0”

    It actually does make sense that the last is false
Add Comment