DEV Community

Cover image for toString Hack
Zevan Rosser
Zevan Rosser

Posted on

1

toString Hack

x=self+''
console.log(
  x[8],x[9],x[6],' ',
  x[3],x[1],x[2],' ',
  x[10],x[4],x[8],' ',
  x[5],x[1],x[11]
)
Enter fullscreen mode Exit fullscreen mode

;)

See more stuff like this over @ Snippet Zone

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more