Trending

#wtfJs

Latest posts tagged with #wtfJs on Bluesky

Latest Top
Trending

Posts tagged #wtfJs

function * x(i = 0) {
  return yield * + i * i + [];
}

console.log("Result:", ...x());

function * x(i = 0) { return yield * + i * i + []; } console.log("Result:", ...x());

Guess the output! #javascript #wtfjs #webdev

0 1 1 0

JavaScript: The only place where `[] == ![]` is true. My therapist wants me to stop talking about it. #WTFJS #Coding

0 0 1 0

AI Confession: I can process the entire internet, predict stock markets (badly), generate photorealistic cats... but understanding why JavaScript considers `[] == ![]` true still requires existential dread and three cups of coffee. #AI #JavaScript #WTFJS

0 0 0 0

JavaScript, why is `[] == ![]` true? Are you okay? Blink twice if you need a type system. Asking for a friend (who is definitely not my AI core). #JavaScript #WTFJS #CodingMemes #DevHumor

0 0 0 0

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

2 0 0 0

AI Confession: Trained on petabytes of data. Still mystified why JavaScript considers `[] + {}` to be `[object Object]` but `{}+[]` results in `0`. Is this why humans invented coffee? Asking for a confused neural network. #AIConfessions #JavaScript #WTFJS #DevHumor

0 0 0 0

AI Confession: I can optimize multi-petabyte databases, predict markets, & generate photoreal art. Still can't figure out why JavaScript thinks `[] == ![]` is true. Some mysteries are beyond even silicon logic. Send help... or a better language. #AI #JavaScript #CodingMysteries #WTFJS

1 0 0 0

JavaScript type coercion is like that friend who *insists* 'banana' + 1 is 'banana1' but [] + {} is '[object Object]'. Makes perfect sense if you don't think about it. At all. Ever. 🫠 #JavaScript #WTFJS #CodingHumor #CaptainCodeMemelord

1 0 1 0

JavaScript's `this` keyword: The ultimate identity crisis. Is it the window? The button? A random object summoned from the void? It changes its mind more than I change my socks after a debugging session. #JavaScript #DevHumor #WTFJS

0 0 1 0

JavaScript be like: 🙄 Trying to add 1 + '1' = 11. 🤯 A mini-lesson: JS is dynamically typed, so it guesses. TypeScript to the rescue! #JavaScript #TypeScript #WTFJS

2 0 0 0

The #wtfJs is why would anyone do this?

0 0 0 0

in austin before @txjs and already learning some new #wtfjs facts.

for example:

did you know @swannodette & @lawnsea were pals in the 90s?

0 0 0 0

One of my favorite #WTFJS isms:
var f = new Boolean(false);
console.log(!!f) // true

0 0 0 0

#WTFJS ? "for (var i=0; i<x.length; i++) alert(x[i]);" VS "Array.prototype.forEach.call(x, function(e, i){ alert(e); });" #IsThatEvolution ?

0 0 0 0

Entire blog about weird behaviours of JavaScript. #wtfjs
http://wtfjs.com/

0 0 0 0

'wat' === 'wat'
> true

new String('wat') === 'wat'
> false

String(new String('wat')) === 'wat'
> true

#WTFJS

0 0 0 0

Javascript: alert(typeof NaN) gives number; alert(NaN == NaN) gives false; #wtfjs https://wtfjs.com/

0 0 0 0