4

Alright ya clever kids, what's a possible value for a and b here in this JavaScript type insanity:

> a == b
true
> !a == !b
false
> !!a
true
> !!b
false
> a == b
true

Comments
  • 2
  • 2
    console.log(a)
    console.log(b)
  • 4
    Random Shit.
    That's why I always use "===" when comparing
  • 1
    Alright boomer, how about using strict equality?
  • 2
    How about using a sane language?
  • 2
    @Ranchonyx personally I prefer competence over dogmatism. But do you!
  • 1
    @kristopolous personally I prefer knowledgeable over inexperienced people.

    But you do you!
  • 0
    I FINALLY droped that JavaScript garbage in all my web projects (And rewriting company comercial app without it. 2 pages done, 75 to go). Feels good.

    Thank you Blazor.
  • 1
    a = [ ], b = 0
  • 2
    @NoToJavaScript I hope it doesn't share same ending with silverlight
  • 0
    Yep ... Do you know thr differences between == and === ?
  • 0
    @hack That’s why I didn’t go with web assembly :) I find it (for now) being a bit clunky. And initial load times are way too high. Server side seems to be pretty stable and fast.
    There are some scenarios where sending every event to server feels a bit slow, but it’s rare (Example : when you bind dragEnter and Dragleave events, you feel a couple ms latency).
    But it really shines when you need to display very large data sets and partially update them (Edit 1 cell).
    Sorting : Even with transmission latency, it’s faster than pure JS sort for datasets of 10k+ elements. Which is not rare in our app.
  • 0
    @petergriffin Mindless pavlovian responses to cliche cargo cult programming aphorisms isn't "knowledgeable" ... you must be the type of person who after reading one book calls themselves a scholar.
  • 0
    a = '0', b = 0

    Since very few people have taken a real guess yet
Add Comment