aemkei / jsfuck

Write any JavaScript with 6 Characters: []()!+
jsfuck.com
Do What The F*ck You Want To Public License
8.12k stars 672 forks source link

how to show nested quotes? #64

Closed frontzhm closed 7 years ago

frontzhm commented 7 years ago

Hello, In context, Function("alert('t')") I can't get the string of "alert('t')", because that string has nested quotes.

frontzhm commented 7 years ago

I view the code in detail,and find the answer that Function("return alert")()("t"). sorry,and you are fantastic!