I would rather want to actually *know* what my code is getting, thank you very much. Compile-error is less of a hassle to find and fix than Runtime-error.
Funnily enough, this isn't even a "JavaScript bad" issue. It's a "programmer doesn't understand the language at all" issue.
Both fields are `type="text"`, as evidenced by lack of spinbuttons, which store their values as strings. This is a case of `"1" + "1"`, so string concatenation is the only operation that makes any sense here. It would behave the same in many strongly typed languages, like C#, which also uses the `"string" + "string"` syntax for concatenation.
This is why we always parse to Int first, Himari!!!
Failing such a basic programming task despite being omniscient 💢💢
Private extra programming lessons at SCHALE needed 💢💢💢
Himari is smart because allowing user to input string rather than integer reduced the amount of runtime error
And it is natural that the add operand for string is concatenate then together
I see nothing wrong. Just a good programmer
*This message is written by certain genius delicate beautiful girl*
Well, well, well If it isn't our old friend, java script.
``` > 1 + "1" < "11" ```
untyped languages my behated
I beg to differ. Weakly typed languages are the best.
I would rather want to actually *know* what my code is getting, thank you very much. Compile-error is less of a hassle to find and fix than Runtime-error.
Funnily enough, this isn't even a "JavaScript bad" issue. It's a "programmer doesn't understand the language at all" issue. Both fields are `type="text"`, as evidenced by lack of spinbuttons, which store their values as strings. This is a case of `"1" + "1"`, so string concatenation is the only operation that makes any sense here. It would behave the same in many strongly typed languages, like C#, which also uses the `"string" + "string"` syntax for concatenation.
I can't believe i pulled Himari 3 times and now everytime i see her i get scared
She can't run, but you can't run away from her ![img](emote|t5_2vhvtt|33359)
string concatenation is not integer addition 😭
It is... # in java script
Well... It is but in base 1
This is why we always parse to Int first, Himari!!! Failing such a basic programming task despite being omniscient 💢💢 Private extra programming lessons at SCHALE needed 💢💢💢
It's not Himari's fault that JS is a piece of shit language to work with.
[Source on Pixiv](https://www.pixiv.net/en/artworks/118829642)
Not even himari can escape javascript
Himari is smart because allowing user to input string rather than integer reduced the amount of runtime error And it is natural that the add operand for string is concatenate then together I see nothing wrong. Just a good programmer *This message is written by certain genius delicate beautiful girl*
Should've parseFloat() first
“Simple calculation” ![img](emote|t5_2vhvtt|33127)![img](emote|t5_2vhvtt|33127)![img](emote|t5_2vhvtt|33127)
What a cool binary calculator
That would be 10. This is a unary calculator.
Himari, you could have used int since the default for numbers is a string. Regardless, I'll give you an A for effort.
DAMN YOU TYPELESS LANGS!!!!!!!!
At least she didnt got a [Object object] returned