• Victor@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    6
    ·
    edit-2
    17 hours ago

    But you’re calling a function specifically made for passing a string to an int… 😆 There’s gotta be some common sense somewhere here, guys.

    Still, it’s a very good point. JS should do this.

    I would suspect one reason it doesn’t do this is to be backwards compatible.