Every time I have to write code in jabbascript I think “can’t be that hard” but then I stumble across some weird behavior like this and I first think “must be a bug somewhere in my code” but no. After some research it always turns out it’s actually a documented “feature(?)”.
I have no idea why this shitty language is so popular and the web standard.
Oh no, it’s even documented on MDN:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt#using_parseint
Every time I have to write code in jabbascript I think “can’t be that hard” but then I stumble across some weird behavior like this and I first think “must be a bug somewhere in my code” but no. After some research it always turns out it’s actually a documented “feature(?)”.
I have no idea why this shitty language is so popular and the web standard.
jabbascript
Should becomes standard
deleted by creator
Might be, but this is also a decent explanation: https://lemmy.ml/post/464637/comment/272066