# Write any JavaScript with 6 Characters Source: https://jsfuck.com ## Summary JSFuck is an esoteric, educational style of JavaScript that uses only six different characters, (, ), +, [, ], and !, to write and execute code. It does not depend on a browser, so it can run on Node.js. The page includes a form for converting user scripts, with an option to uncheck "eval source" to get back a plain string. It also lists alternatives, including Hieroglyphy (8 characters, browser only), and notes that utf-8.jp and JS-NoAlnum are broken. The project is credited to Martin Kleppe (@aemkei), with the original discussion held at Sla.ckers.org. ## Article JSFuck ()+ []! JSFuck is an esoteric and educational programming style based on the atomic parts of JavaScript. It uses only six different characters to write and execute code. It does not depend on a browser, so you can even run it on Node.js. Use the form below to convert your own script. Uncheck "eval source" to get back a plain string. Eval Source Run In Parent Scope Links Share on Twitter View source on GitHub Follow @aemkei (Martin Kleppe) Original discussion at Sla.ckers.org Alternatives Hieroglyphy (8 chars, browser only) utf-8.jp (broken) JS-NoAlnum (broken) Basics false => ![] true => !![] undefined => [][[]] NaN => +[![]] 0 => +[] 1 => +!+[] 2 => !+[]+!+[] 10 => [+!+[]]+[+[]] Array => [] Number => +[] String => []+[] Boolean => ![] Function => []["filter"] eval => []["filter"]["constructor"]( CODE )() window => []["filter"]["constructor"]("return this")() See the full list here.