Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

75%
+10 −2
Challenges "Hello, World!"

Javascript V8, 888 bytes $=-~[] *~-((~-~ [])** -~- ~[]); _$=$+ ~[];$$_=_$...

posted 4y ago by ZippyMagician‭  ·  edited 4y ago by ZippyMagician‭

Answer
#3: Post edited by user avatar ZippyMagician‭ · 2020-11-18T13:44:45Z (about 4 years ago)
  • # [Javascript V8](https://v8.dev), 888 bytes
  • ```js
  • $=-~[]
  • *~-((~-~
  • [])** -~-
  • ~[]); _$=$+ ~[];$$_=_$
  • +$;$$={ }+[];_$$ =![]+[];
  • $_=!![]+[ ];$=$$[$+_$ ]+$$[-~
  • []]+(_$$[![ ]+[]]+[])[-~ []]+_$$[
  • _$-~[]]+$$[$+$]+$_[-~[]]+$_[_$]+$$[
  • $+$+~[]]+$$[$+_$-~[]]+$$[-~[]]+$_[-
  • ~[]];$$='\\x';_=(_$**(_$+_$-~[]))+
  • _$**(_$-~[]);__=_+_/_$;$[$][$](_$$[-
  • ~[]]+_$$[_$]+_$$[_$+_$]+$_[-~[]]+
  • $_[+[]]+"('"+$$+(_+_$**(_$-~[])
  • )+$$+(__+$$_)+$$+(__+[])[+[]]
  • +({ }+[ ])[ $$_
  • ]+$$ +(__ +[]) [+[]
  • ]+({ }+[] )[$$_ ]+$$
  • +(__ +[]) [+[]] +_$$
  • [+[] ]+$$ +_/_$ +$$+
  • (__- _$+~ [])+ $$+(
  • __+[ ])[+ []]+ _$$[
  • +[]] +$$+ (__+ __/$$_
  • )+$$ +(__ +[]) [+[]]+
  • ({}+[]) [$$_]+$$+ (__+_$+ _$)+"')")()
  • ```
  • Absolutely the shortest possible, no doubt about it. [Try it online!](https://tio.run/##hVLBasMwDL37K9IgiB1heh2EfIlrRNlpO41tlEFpfj3Ts@wkt5TQRNJ78nuyPu@P@8/798fXb3y8rWt3@qM5Lim7U9y4RO@XuJwiUw7j2HVxiQ2q/cPUykIz8V6YiGQWqlAmjeenBS/WshBZNF9SRsKQSrqUBAJtMhMlYinYzBpUoSln9tojXRIKCFWMVq2EiiuiMIRCJCZ9S6oJSUIlrzAt8Q47cDasWsYnTAy3298wyaynj6P@VXwI7GqmhJOofZarqPNEWZ8itzYqAiHA3ixHbVAkqXjq/dCrELXKx@awFiwv@pLtGzMAEQD2zzLrwxVqFTMmcTZNgES2MuiYLWNvcuHbbVk5JGV27SbcRq20yjQwjLnUqHaW5a92mR0kO20R6/bwsq1ZXSN4cjDVtHNDZG47p/e3n0ltATEKA8gVbkM7f7e7ibZBO/98WQomc2mFLoKWQoH7IfTBh3X9Bw "JavaScript (V8) – Try It Online"). It won't work in the online one, copy it from there and paste it in the developer console if you are on chrome (as it uses the `alert` function). Please excuse my absolutely awful ascii art.
  • # [Javascript V8](https://v8.dev), 888 bytes
  • ```js
  • $=-~[]
  • *~-((~-~
  • [])** -~-
  • ~[]); _$=$+ ~[];$$_=_$
  • +$;$$={ }+[];_$$ =![]+[];
  • $_=!![]+[ ];$=$$[$+_$ ]+$$[-~
  • []]+(_$$[![ ]+[]]+[])[-~ []]+_$$[
  • _$-~[]]+$$[$+$]+$_[-~[]]+$_[_$]+$$[
  • $+$+~[]]+$$[$+_$-~[]]+$$[-~[]]+$_[-
  • ~[]];$$='\\x';_=(_$**(_$+_$-~[]))+
  • _$**(_$-~[]);__=_+_/_$;$[$][$](_$$[-
  • ~[]]+_$$[_$]+_$$[_$+_$]+$_[-~[]]+
  • $_[+[]]+"('"+$$+(_+_$**(_$-~[])
  • )+$$+(__+$$_)+$$+(__+[])[+[]]
  • +({ }+[ ])[ $$_
  • ]+$$ +(__ +[]) [+[]
  • ]+({ }+[] )[$$_ ]+$$
  • +(__ +[]) [+[]] +_$$
  • [+[] ]+$$ +_/_$ +$$+
  • (__- _$+~ [])+ $$+(
  • __+[ ])[+ []]+ _$$[
  • +[]] +$$+ (__+ __/$$_
  • )+$$ +(__ +[]) [+[]]+
  • ({}+[]) [$$_]+$$+ (__+_$+ _$)+"')")()
  • ```
  • Absolutely the shortest possible, no doubt about it. [Try it online!](https://tio.run/##hVLBasMwDL37K9IgiB1heh2EfIlrRNlpO41tlEFpfj3Ts@wkt5TQRNJ78nuyPu@P@8/798fXb3y8rWt3@qM5Lim7U9y4RO@XuJwiUw7j2HVxiQ2q/cPUykIz8V6YiGQWqlAmjeenBS/WshBZNF9SRsKQSrqUBAJtMhMlYinYzBpUoSln9tojXRIKCFWMVq2EiiuiMIRCJCZ9S6oJSUIlrzAt8Q47cDasWsYnTAy3298wyaynj6P@VXwI7GqmhJOofZarqPNEWZ8itzYqAiHA3ixHbVAkqXjq/dCrELXKx@awFiwv@pLtGzMAEQD2zzLrwxVqFTMmcTZNgES2MuiYLWNvcuHbbVk5JGV27SbcRq20yjQwjLnUqHaW5a92mR0kO20R6/bwsq1ZXSN4cjDVtHNDZG47p/e3n0ltATEKA8gVbkM7f7e7ibZBO/98WQomc2mFLoKWQoH7IfTBh3X9Bw "JavaScript (V8) – Try It Online"). It won't work in the online one, copy it from there and paste it in the developer console if you are on chrome (as it uses the `alert` function). Please excuse my absolutely awful ascii art.
  • I also now see that this output isn't accepted (needs the comma and exclamation mark)... lol now it's time to figure out how I did this months ago so I can fix it ...
#2: Post edited by user avatar ZippyMagician‭ · 2020-11-18T13:42:23Z (about 4 years ago)
  • # Javascript, 888 bytes
  • ```js
  • $=-~[]
  • *~-((~-~
  • [])** -~-
  • ~[]); _$=$+ ~[];$$_=_$
  • +$;$$={ }+[];_$$ =![]+[];
  • $_=!![]+[ ];$=$$[$+_$ ]+$$[-~
  • []]+(_$$[![ ]+[]]+[])[-~ []]+_$$[
  • _$-~[]]+$$[$+$]+$_[-~[]]+$_[_$]+$$[
  • $+$+~[]]+$$[$+_$-~[]]+$$[-~[]]+$_[-
  • ~[]];$$='\\x';_=(_$**(_$+_$-~[]))+
  • _$**(_$-~[]);__=_+_/_$;$[$][$](_$$[-
  • ~[]]+_$$[_$]+_$$[_$+_$]+$_[-~[]]+
  • $_[+[]]+"('"+$$+(_+_$**(_$-~[])
  • )+$$+(__+$$_)+$$+(__+[])[+[]]
  • +({ }+[ ])[ $$_
  • ]+$$ +(__ +[]) [+[]
  • ]+({ }+[] )[$$_ ]+$$
  • +(__ +[]) [+[]] +_$$
  • [+[] ]+$$ +_/_$ +$$+
  • (__- _$+~ [])+ $$+(
  • __+[ ])[+ []]+ _$$[
  • +[]] +$$+ (__+ __/$$_
  • )+$$ +(__ +[]) [+[]]+
  • ({}+[]) [$$_]+$$+ (__+_$+ _$)+"')")()
  • ```
  • Absolutely the shortest possible, no doubt about it. [Try it online!](https://tio.run/##hVLBasMwDL37K9IgiB1heh2EfIlrRNlpO41tlEFpfj3Ts@wkt5TQRNJ78nuyPu@P@8/798fXb3y8rWt3@qM5Lim7U9y4RO@XuJwiUw7j2HVxiQ2q/cPUykIz8V6YiGQWqlAmjeenBS/WshBZNF9SRsKQSrqUBAJtMhMlYinYzBpUoSln9tojXRIKCFWMVq2EiiuiMIRCJCZ9S6oJSUIlrzAt8Q47cDasWsYnTAy3298wyaynj6P@VXwI7GqmhJOofZarqPNEWZ8itzYqAiHA3ixHbVAkqXjq/dCrELXKx@awFiwv@pLtGzMAEQD2zzLrwxVqFTMmcTZNgES2MuiYLWNvcuHbbVk5JGV27SbcRq20yjQwjLnUqHaW5a92mR0kO20R6/bwsq1ZXSN4cjDVtHNDZG47p/e3n0ltATEKA8gVbkM7f7e7ibZBO/98WQomc2mFLoKWQoH7IfTBh3X9Bw "JavaScript (V8) – Try It Online"). It won't work in the online one, copy it from there and paste it in the developer console if you are on chrome (as it uses the `alert` function). Please excuse my absolutely awful ascii art.
  • # [Javascript V8](https://v8.dev), 888 bytes
  • ```js
  • $=-~[]
  • *~-((~-~
  • [])** -~-
  • ~[]); _$=$+ ~[];$$_=_$
  • +$;$$={ }+[];_$$ =![]+[];
  • $_=!![]+[ ];$=$$[$+_$ ]+$$[-~
  • []]+(_$$[![ ]+[]]+[])[-~ []]+_$$[
  • _$-~[]]+$$[$+$]+$_[-~[]]+$_[_$]+$$[
  • $+$+~[]]+$$[$+_$-~[]]+$$[-~[]]+$_[-
  • ~[]];$$='\\x';_=(_$**(_$+_$-~[]))+
  • _$**(_$-~[]);__=_+_/_$;$[$][$](_$$[-
  • ~[]]+_$$[_$]+_$$[_$+_$]+$_[-~[]]+
  • $_[+[]]+"('"+$$+(_+_$**(_$-~[])
  • )+$$+(__+$$_)+$$+(__+[])[+[]]
  • +({ }+[ ])[ $$_
  • ]+$$ +(__ +[]) [+[]
  • ]+({ }+[] )[$$_ ]+$$
  • +(__ +[]) [+[]] +_$$
  • [+[] ]+$$ +_/_$ +$$+
  • (__- _$+~ [])+ $$+(
  • __+[ ])[+ []]+ _$$[
  • +[]] +$$+ (__+ __/$$_
  • )+$$ +(__ +[]) [+[]]+
  • ({}+[]) [$$_]+$$+ (__+_$+ _$)+"')")()
  • ```
  • Absolutely the shortest possible, no doubt about it. [Try it online!](https://tio.run/##hVLBasMwDL37K9IgiB1heh2EfIlrRNlpO41tlEFpfj3Ts@wkt5TQRNJ78nuyPu@P@8/798fXb3y8rWt3@qM5Lim7U9y4RO@XuJwiUw7j2HVxiQ2q/cPUykIz8V6YiGQWqlAmjeenBS/WshBZNF9SRsKQSrqUBAJtMhMlYinYzBpUoSln9tojXRIKCFWMVq2EiiuiMIRCJCZ9S6oJSUIlrzAt8Q47cDasWsYnTAy3298wyaynj6P@VXwI7GqmhJOofZarqPNEWZ8itzYqAiHA3ixHbVAkqXjq/dCrELXKx@awFiwv@pLtGzMAEQD2zzLrwxVqFTMmcTZNgES2MuiYLWNvcuHbbVk5JGV27SbcRq20yjQwjLnUqHaW5a92mR0kO20R6/bwsq1ZXSN4cjDVtHNDZG47p/e3n0ltATEKA8gVbkM7f7e7ibZBO/98WQomc2mFLoKWQoH7IfTBh3X9Bw "JavaScript (V8) – Try It Online"). It won't work in the online one, copy it from there and paste it in the developer console if you are on chrome (as it uses the `alert` function). Please excuse my absolutely awful ascii art.
#1: Initial revision by user avatar ZippyMagician‭ · 2020-11-18T13:41:12Z (about 4 years ago)
# Javascript, 888 bytes
```js
                                  $=-~[]
                                 *~-((~-~
                                [])**  -~-
       ~[]);        _$=$+       ~[];$$_=_$
      +$;$$={      }+[];_$$      =![]+[];
     $_=!![]+[    ];$=$$[$+_$    ]+$$[-~
    []]+(_$$[![  ]+[]]+[])[-~  []]+_$$[
   _$-~[]]+$$[$+$]+$_[-~[]]+$_[_$]+$$[
  $+$+~[]]+$$[$+_$-~[]]+$$[-~[]]+$_[-
 ~[]];$$='\\x';_=(_$**(_$+_$-~[]))+
_$**(_$-~[]);__=_+_/_$;$[$][$](_$$[-
 ~[]]+_$$[_$]+_$$[_$+_$]+$_[-~[]]+
  $_[+[]]+"('"+$$+(_+_$**(_$-~[])
   )+$$+(__+$$_)+$$+(__+[])[+[]]
   +({  }+[           ])[   $$_
  ]+$$  +(__         +[])   [+[]
 ]+({    }+[]      )[$$_     ]+$$
+(__     +[])      [+[]]     +_$$
[+[]     ]+$$      +_/_$     +$$+
(__-     _$+~      [])+      $$+(
__+[     ])[+      []]+      _$$[
+[]]     +$$+      (__+     __/$$_
)+$$     +(__      +[])     [+[]]+
({}+[])  [$$_]+$$+ (__+_$+  _$)+"')")()
```
Absolutely the shortest possible, no doubt about it. [Try it online!](https://tio.run/##hVLBasMwDL37K9IgiB1heh2EfIlrRNlpO41tlEFpfj3Ts@wkt5TQRNJ78nuyPu@P@8/798fXb3y8rWt3@qM5Lim7U9y4RO@XuJwiUw7j2HVxiQ2q/cPUykIz8V6YiGQWqlAmjeenBS/WshBZNF9SRsKQSrqUBAJtMhMlYinYzBpUoSln9tojXRIKCFWMVq2EiiuiMIRCJCZ9S6oJSUIlrzAt8Q47cDasWsYnTAy3298wyaynj6P@VXwI7GqmhJOofZarqPNEWZ8itzYqAiHA3ixHbVAkqXjq/dCrELXKx@awFiwv@pLtGzMAEQD2zzLrwxVqFTMmcTZNgES2MuiYLWNvcuHbbVk5JGV27SbcRq20yjQwjLnUqHaW5a92mR0kO20R6/bwsq1ZXSN4cjDVtHNDZG47p/e3n0ltATEKA8gVbkM7f7e7ibZBO/98WQomc2mFLoKWQoH7IfTBh3X9Bw "JavaScript (V8) – Try It Online"). It won't work in the online one, copy it from there and paste it in the developer console if you are on chrome (as it uses the `alert` function). Please excuse my absolutely awful ascii art.