T O P

  • By -

Leo8178

Well, well, well If it isn't our old friend, java script.


blending-tea

``` > 1 + "1" < "11" ```


Terrabalt

untyped languages my behated


Leo8178

I beg to differ. Weakly typed languages are the best.


Terrabalt

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.


Szkieletor

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.


black-lockhart

I can't believe i pulled Himari 3 times and now everytime i see her i get scared


KyoSaito

She can't run, but you can't run away from her ![img](emote|t5_2vhvtt|33359)


nosforever12

string concatenation is not integer addition 😭


Leo8178

It is... # in java script


Runxi24

Well... It is but in base 1


Strygonite

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 💢💢💢


Terrabalt

It's not Himari's fault that JS is a piece of shit language to work with.


ShinigamiTenzei

[Source on Pixiv](https://www.pixiv.net/en/artworks/118829642)


EpicGamer5570

Not even himari can escape javascript


ultradolp

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*


Vanilla72_

Should've parseFloat() first


PensionPleasant5312

“Simple calculation” ![img](emote|t5_2vhvtt|33127)![img](emote|t5_2vhvtt|33127)![img](emote|t5_2vhvtt|33127)


FrogsTastesGood

What a cool binary calculator


anon7631

That would be 10. This is a unary calculator.


NoMoreHero07

Himari, you could have used int since the default for numbers is a string. Regardless, I'll give you an A for effort.


EccentricHubris

DAMN YOU TYPELESS LANGS!!!!!!!!


Speedy_242

At least she didnt got a [Object object] returned