Strangest language feature stackoverflow.com/questions/1995…
DEV Community@ThePracticalDev·6 EylStrangest language feature stackoverflow.com/questions/1995…Çevir English0000
DEV Community@ThePracticalDev·6 EylIn JavaScript: '5' + 3 gives '53' Whereas '5' - 3 gives 2Çevir English0000
Christoph Engelbert / Noctarius ツ / エンゲルベルト クリス@noctarius2k·6 Eyl@ThePracticalDev I love the last one :DÇevir English0000
Chris Rywalt 💬@ChrisRywalt·25 Kas@ThePracticalDev I have an idea! Let's choose this as the only workable cross-plaftorm programming language for the WHOLE INTERNET!Çevir English0000
Christoph Engelbert / Noctarius ツ / エンゲルベルト クリス@noctarius2k·6 Eyl@ThePracticalDev The biggest question: Is this consistent on all implementations? :DÇevir English0000
NegativeZero@Atomstrawberry·6 Eyl@ThePracticalDev Thanks for giving me a better example than aaencode (utf-8.jp/public/aaencod…) to explain why JavaScript is the worst.Çevir English0000
Andre Exner@KickOffNo1·7 Eyl@ThePracticalDev ...and that's why you should almost always go for ===Çevir English0000
Jon Wilson@toastboy70·6 Eyl@ThePracticalDev @JasonTrenouth struth! (Or as autocorrect would have it, “struts!”)Çevir Saint Ives, England 🇬🇧 English0000
Brent Nycum@BrentNycum·25 Kas@ThePracticalDev Try the Return True to Win game. alf.nu/ReturnTrueÇevir English0000
Robert Thompson@robisadev·25 Kas@ThePracticalDev Everything I remember these quirks I say #eff #javascriptÇevir English0000
Marisa Kirisame@mkmagicannon·25 KasI confirmed the last one is authentic. Bloody hell. @ThePracticalDev @JackTheRiplaÇevir English0000
Dave Air@dave_air·25 Kas@ThePracticalDev @themaxx I would have thrown in the === operatorÇevir English0000
Ryan Clair 🦋 @rycr.io@ryandotclair·7 Eyl@ThePracticalDev reminds me of this hilarious talk: destroyallsoftware.com/talks/watÇevir English0000
Dmitriy Nevzorov@nevzorov_d·7 Eyl@ThePracticalDev The most confusing for me is [] == ![] //trueÇevir English0000
Brian Barnett@brian3kb·6 Eyl@ThePracticalDev its a little thing called #coercion, replace all == with === and it all makes sense #JavaScriptÇevir English0000
🍳 ./tdeekens 🥫@tdeekens·7 Eyl@ThePracticalDev @pvblivs The double = and peeps still find it funny? Type conversion or not. That's all.Çevir English0000
Specodi@Specodi·25 Kas@ThePracticalDev I didn't think I knew Javascript, but this makes perfect sense to me.Çevir English0000
Chris Rywalt 💬@ChrisRywalt·6 Eyl@ThePracticalDev Basically the answer to this is "JavaScript" no matter what.Çevir English0000
Zimmie@bob_zim·25 Kas@ThePracticalDev Aren’t most (or all) of those technically undefined? They could differ from one interpreter to the next, right?Çevir English0000