Using operators in js to exec code

Can somebody give me a good explanation (searched for it online but couldn’t find an exaustive answer) of why you can use let’s say the “-“ operand to execute code? (“-alert()-“). Is it possible to use it everywhere?

submitted by /u/Bongioo
[link] [comments]

from hacking: security in practice https://ift.tt/WhgvoO9

Comments