FiskFisk33

joined 1 year ago
[–] [email protected] 1 points 8 months ago (2 children)

the remainder operator should return a number or a NaN right? do we actually need the triple here?

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago)

Oh right that. I guess I was visualizing a scenario where you already checked for it being a number, such as a Number.isInteger(x)

also, that suprises me a lot, you'd think this is one of the places where it treats stuff as numbers

[–] [email protected] 5 points 8 months ago (13 children)

I am not good friends with js, what did I miss?

[–] [email protected] 32 points 8 months ago* (last edited 8 months ago) (20 children)

is this really a feature not built into Java Script?

x % 2 == 0

[–] [email protected] 73 points 8 months ago (34 children)

better to go that way than this (note the weekly downloads)

[–] [email protected] 3 points 8 months ago
[–] [email protected] 41 points 8 months ago (3 children)

"Stupid people always say no" does not imply other people do any different.

[–] [email protected] 9 points 8 months ago

Me, stupid? In some ways definitely yes.

[–] [email protected] 13 points 8 months ago

I like how the french fries got a drinking straw

[–] [email protected] 2 points 8 months ago (1 children)

It's interesting how it still looks kindof correct at a glance, until you look at it specifically.

[–] [email protected] 10 points 8 months ago

mcdonalds? the sign clearly says "modlidani"

fingers? try the coca cola logo...

view more: ‹ prev next ›