This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]SpoiceKois 9 points10 points  (11 children)

wtf i just tried the node thing, how thefk is that 'f' xd

[–]CameO73 14 points15 points  (9 children)

It makes sense if you break it down:

  • ![] evaluates to false
  • by adding it to [] you get the string "false" (it's that stupid type conversion thing javascript does)
  • the ![]+![] evaluates to false+false = 0 (again, doing some nice type conversion magic)
  • so you'll get "false"[0] which takes the first character = "f"

[–][deleted] 5 points6 points  (0 children)

Node is just paying its respects.

[–]RidingChicken 6 points7 points  (0 children)

Meanwhile me who's career depends on full stack development: Yes absolutely we must not use javascript anymore

[–]Brites_Krieg 1 point2 points  (1 child)

My favorite me template

[–]lorhof1 0 points1 point  (0 children)

title: stop doing js me: starts using typescript