OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 1 month agoparseInt(5)lemmy.mlimagemessage-square59fedilinkarrow-up1439arrow-down16
arrow-up1433arrow-down1imageparseInt(5)lemmy.mlOsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 1 month agomessage-square59fedilink
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up3arrow-down5·edit-21 month agoBut 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.
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.