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 😅

https://jsdate.wtf/

#amCoding #amProgramming #softwareDevelopment #softwareEngineering #webDevelopment #webDev #JS #JavaScript #ECMAScript #js_dates #wtfjs

new Date("wtf")

How well do you know JavaScript's Date class?

jsdate.wtf

JavaScript : [] == ![] // → true 😱

Mais POURQUOI ?

➡️ Une vidéo pour comprendre cette folie : https://youtube.com/shorts/lHpTUW3gR00

#JavaScript #wtfjs #dev #frontend

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é.

#WTFJS

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 😉
@ryan @ak 💀 lots of valuable #wtfjs fodder being mined by Ryan here for sure
@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.

https://www.youtube.com/watch?v=et8xNAc2ic8

#WTFJS

dotJS 2012 - Brian Leroux - WTFJS

YouTube

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.

We all love JavaScript

Posted in r/ProgrammerHumor by u/SUComrade • 5,727 points and 336 comments

reddit