Top Tweets for #wtfjs
๐ง JS Quiz Time!
Whatโs the output?
[] + []
Donโt overthink. Drop your answer ๐ #wtfjs #javascript
๐ง JavaScript Juice #2
NaN === NaN // false
NaN is the only value in JavaScript thatโs not equal to itself. ๐คฏ
Use Number.isNaN() to check it safely.
JS be like: "I don't even know me."
#JavaScriptJuice #JavaScript #WTFjs #100DaysOfCode
wtfjs by @denysdovhan
Learn the quirks of JavaScript with WTFJS, a collection of funny and tricky examples to help you master the language! #JavaScript #WTFJS #LearningToCode

JavaScript is the only language where:
[] + [] = ""
[] + {} = "[object Object]"
{} + [] = 0
Confused?
Welcome to the circus.
#JavaScript #WTFJS #100DaysOfCode
Here's a refined version of the tweet for a beginner aiming to grow on Twitter:
๐ JavaScript Quirk:
Did you know? [] + [] in JavaScript returns an empty string! ๐คฏ
#JavaScript #CodeNewbie #WTFJS #100DaysOfCode #LearnToCode #WebDev
Today i learned a very important topic. Type coercion in JS. Type coercion isย the automatic or implicit conversion of values from one data type to another.
#javascript #problemsolving #truefalse #wtfjs
@codeforindia_ @0xiAkhil
It bothers me that JS ints are 32-bit signed:
0x888888 * 256 = 0x88888800 // ok
0x88888800 / 256 = 0x888888 // ok
0x777777 << 8 = 0x77777700 // ok
1 >> 31 = 0 // ok
โฏ
0x888888 << 8 = -0x77777800
1 << 32 = 1
1 >> 32 = 1
0x88888800 >> 31 = -1
0x88888800 >> 32 = -0x77777800
#wtfjs
@IrratixMusic one of the tweets in my list has lost its context but it can be presented like that:
a=10;
!(a--); // false
1<false; // false
1<!a--; // false
1<!--a; // #wtfjs
JS is sometimes weird in its own way!๐คช
Introducing our new daily series #WTFJS, with the 1st episode, What's a Truthy?
Inspired by @denysdovhan's GitHub repo, and a 2012 talk by @brianleroux, join @hackintoshrao for a wild JS ride!๐ข
๐https://t.co/12jfschvkI
#100daysofCode
JS is sometimes weird in its own way!๐คช
Introducing our new daily series #WTFJS, with the 1st episode, What's a Truthy?
Inspired by @denysdovhan's GitHub repo, and a 2012 talk by @brianleroux, join @hackintoshrao for a wild JS ride!๐ข
๐https://t.co/12jfschvkI
#100daysofCode
Here's another #WTFJS moment
JavaScript floating-point addition is broken. Well kind of
In JavaScript, 0.1 + 0.2 == 0.3 gives the value 'false'.
So why does this happen? #javascript

Here's a #WTFJS moment
Why is the default sort in JavaScript so confusing?
This is not a bug. Using the default JavaScript sort() method converts the elements of arrays into strings.
It then compares the UTF-16 values and sorts the list based on these UTF-16 values.

Huge update for #wtfjs ๐ฅ
๐คฏ 10+ more new mind-blowing examples
๐ฌ New discussion forum
๐ฎ๐ณ Hindi translation
๐ Automatic releases
๐ https://t.co/rk1EHEKyRb ๐

Seriously #wtfjs

WTFJS: A List of #Funny and 'Tricky' #JavaScript Examples โ This has been around for years but continues to resonate with developers and gets various tweaks and adjustments. || #WebDev #Coding #WTFJS https://t.co/2KEqMrCoIw
Last Seen Hashtags on Sotwe
็ปฟๅธฝๅนปๆณ
minichat
Seen from United States
เนเธขเนเธเธซเธกเธญเธเธงเธ
Seen from Thailand
minichat(************)
Seen from Germany
ููุฏุฒ_ุฎููุฌู
Seen from Jordan
KennaJames
Seen from Turkey
desi outdoor
Seen from France
Zoophilia
Seen from Turkey
girlpooping
Seen from Malaysia
bops(***)***+filter:native_video
Seen from United Kingdom
Most Popular Users

Elon Musk 
@elonmusk
241.7M followers

Barack Obama 
@barackobama
119M followers

Cristiano Ronaldo 
@cristiano
114.4M followers

Donald J. Trump 
@realdonaldtrump
111.9M followers

Narendra Modi 
@narendramodi
107.2M followers

Rihanna 
@rihanna
98.7M followers

NASA 
@nasa
92.4M followers

Justin Bieber 
@justinbieber
91.8M followers

KATY PERRY 
@katyperry
90M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.9M followers

YouTube 
@youtube
68.8M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.3M followers

CNN 
@cnn
61.8M followers

X 
@x
60.7M followers















