How is this syntax [+!+[]]+ ... and where to find examples?

Was wondering what this syntax in js consisting of (, +, !, [, { ....
If where examples of such a script for example alert - a. And what is it called and what's it for?
July 9th 19 at 13:54
2 answers
July 9th 19 at 13:56
Solution
Thank you , and how to run this script then :([][(![]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]]()[(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]])(+[])
Created html file is opened the script tags and then pasted , saved, opened in the UK but he who is alert - and did not happen, the script was taken from habra article. - brook.Dare commented on July 9th 19 at 13:59
: there is a mistake in the example:
Uncaught TypeError: Array.prototype.sort called on null or undefined - geovanni_Hegmann commented on July 9th 19 at 14:02
July 9th 19 at 13:58
Solution
This is one way of obfuscation, although much of a problem to bring back the original look. much more here is an example codepen.io/bingo347/pen/pyezKg?editors=0011
and there are ready code for obfuscatory in this kind? - brook.Dare commented on July 9th 19 at 14:01
: here is the whole trick that this is a hand made (spent about an hour on this example), although if you want I think you can write a script - geovanni_Hegmann commented on July 9th 19 at 14:04
I just obfuscator sawing https://github.com/sanex3339/javascript-obfuscator and study various interesting methods of obfuscation of the code. it will be necessary to scratch with your example and see what's coming. - erna_Zulauf commented on July 9th 19 at 14:07
: could you give a hint, the text output to the console, coded in numbers in the array, and most of the code decodes them. - geovanni_Hegmann commented on July 9th 19 at 14:10
it's obvious =) but thanks anyway - erna_Zulauf commented on July 9th 19 at 14:13

Find more questions by tags JavaScript