JavaScript Pro Tip!

3 years ago by relevants to c/programmerhumor

LovelyCupcake 16 points 3 years ago

It works the other way around as well

path: 0 92555, hotness: undefined, score: 16, children: 1
lemme 3 points 3 years ago

Take my angry upvote!

path: 0 92555 131250, hotness: undefined, score: 3, children: 0
Rega 11 points 3 years ago

I had to check if that's actually true. And yep, this is real.

path: 0 123488, hotness: undefined, score: 11, children: 1
pathief 1 point 3 years ago

It's clearly is integer.

path: 0 123488 124834, hotness: undefined, score: 1, children: 0
Synthuir 3 points 3 years ago

My favorite data type, ‘number’

path: 0 129010, hotness: undefined, score: 3, children: 0
HoornseBakfiets 3 points 3 years ago
path: 0 129006, hotness: undefined, score: 3, children: 2
zekiz 4 points 3 years ago

NaN is actually a number in JavaScript

path: 0 129006 129007, hotness: undefined, score: 4, children: 1
darcy 1 point 3 years ago

tbf its the floating point standards fault

path: 0 129006 129007 2326443, hotness: undefined, score: 1, children: 0
catacomb 3 points 3 years ago

I'm going to be honest, this probably makes sense more than any other JavaScript operator quirk I've seen.

path: 0 145133, hotness: undefined, score: 3, children: 0
azalty 3 points 3 years ago

Ahhh… javascript…

path: 0 1574814, hotness: undefined, score: 3, children: 0
drownedPhoenician 1 point 3 years ago

I never learned JavaScript and I can very happily say, I won't need it for my career. Hopefully.

path: 0 127537, hotness: undefined, score: 1, children: 1
MauricioMacri 1 point 3 years ago

No one escapes JavaScript. Your time will come

path: 0 127537 153038, hotness: undefined, score: 1, children: 0
nodiet 0 points 3 years ago

As someone who only had very peripheral contact with JavaScript I can't tell if this is real and that is really the beauty (/s) of this language

path: 0 164681, hotness: undefined, score: 0, children: 0
programmerhumor
programmerhumor

@lemmy.ml

login for more options
43735
1627
1181

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

go to feed...