Guess the output! #javascript #wtfjs #webdev
Guess the output! #javascript #wtfjs #webdev
I scored 13/28 on https://jsdate.wtf and all I got was this lousy text to share on social media.
But jokes aside, I had great fun—and quite a few headscratches, yaw drops, and sighs 😅
#amCoding #amProgramming #softwareDevelopment #softwareEngineering #webDevelopment #webDev #JS #JavaScript #ECMAScript #js_dates #wtfjs
JavaScript : [] == ![] // → true 😱
Mais POURQUOI ?
➡️ Une vidéo pour comprendre cette folie : https://youtube.com/shorts/lHpTUW3gR00
En #JavaScript, el operador == te dice que "0" == false es true.
🚩 Yo te digo que eso es una red flag con patas.
🧠 Mañana sale post nuevo explicando por qué.
Here's another #wtfJS moment. When {} is first, JS treats it as an empty code block! The + [] becomes numeric conversion of empty array `0`. But when [] is first, it's string concatenation
@brianleroux I kinda hoped, you would regret not having merged the #wtfjs PRs 😜 Nevertheless, enjoy your rocher espresso 😉
@brianleroux Apart from occasional #wtfjs moments it gets better and better with every #ECMAScript version
If you haven't seen these #Javascript #Quirks yet, it's worth it. Don't forget some popcorn and tissues, though. You might cry from laughing.
War die letzten Jahre immer so drauf "Hahaha, klar ist #JavaScript scheiße und für Zahlenoperationen überhaupt nicht verwendbar, aber zumindest weiß ich WARUM es scheiße ist"
Heute sah ich eine neue #WTFJS-Sache, die ich bisher noch nicht kannte…
https://www.reddit.com/r/ProgrammerHumor/comments/shmec9/we_all_love_javascript/
Aua.
RT @ryuhhnn@twitter.com
Any JavaScript nerds wanna get rekt? This code:
$=_=>`$=${$};$()`;$()
is valid ES6 that will print itself. Seriously. Copy and paste this into your console and try it out if you don't believe me. #JavaScript #ECMA #ES6 #WTFJS