• JavaScriptDaily Profile Picture

    JavaScript Daily @JavaScriptDaily

    8 years ago

    Can (a == 1 && a == 2 && a == 3) Ever Evaluate to 'true'? stackoverflow.com/q/48270127/3951 (Not very useful but it turns out, yes, it's possible to make it happen in JavaScript.)

    11 231 399 0 0
  • Qbe_Root Profile Picture

    Noki Doki - why are you still on here? @Qbe_Root

    8 years ago

    @JavaScriptDaily let a = {foo: 0, valueOf: function () { return ++this.foo }}

    0 0 2 0 0
  • kommu_gopi Profile Picture

    kommu gopi @kommu_gopi

    8 years ago

    @JavaScriptDaily On of the tricky question I ever seen!!

    0 0 0 0 0
  • adamdallis Profile Picture

    adam dallis @adamdallis

    8 years ago

    @JavaScriptDaily Yes

    0 0 0 0 0
  • ch1z Profile Picture

    Christopher | Christ with a meaningless suffix @ch1z

    8 years ago

    @JavaScriptDaily a = true. Hilarious type juggling ensues.

    0 0 0 0 0
  • djumaka Profile Picture

    Boyan Djumakov @djumaka

    8 years ago

    @JavaScriptDaily Frankly I find it a useless, "lawyer" question - it is one in a gazillion to hit it in real life, less than 10 people will ever benefit of this knowledge, it bloats corner-case-theoretical questions, but it is considered pro-knowledge. Useful if you will create ES-10, probably...

    0 0 0 0 0
  • ashishburps Profile Picture

    Ashish Verma @ashishburps

    8 years ago

    @JavaScriptDaily @saiumesh i am flattered 🙏

    1 0 0 0 0
  • MrBuBBLs Profile Picture

    Philippe Boblet @MrBuBBLs

    8 years ago

    @JavaScriptDaily JS c'est plus fort que toi ^^

    0 0 0 0 0
  • sgress454 Profile Picture

    Scott Gress @sgress454

    8 years ago

    @JavaScriptDaily That's why you gotta === every time! Like the billboard says: "==: not even once".

    0 0 0 0 0
  • lT0mm Profile Picture

    Tom @lT0mm

    8 years ago

    @JavaScriptDaily it should be incrementing object field and overriding valueOf ) but I knew that it's possible, that is always easier

    1 0 0 0 0
  • FelippeRegazio Profile Picture

    ✪ Felippe @FelippeRegazio

    8 years ago

    @JavaScriptDaily thats really cool haha, so a friend of mine made a nice answer in C++ : struct{ bool operator== (const int content) const { return true } } a; int main(){ if (a == 1 && a == 2 && a ==3) printf("worked"); return 0 }

    0 0 0 0 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 www.instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro