|
|
|
|
|
by hdhzy
3349 days ago
|
|
I suggest reading the spec. 5.1 [0] although dated is written in very easy to understand language (well, most parts). After that, fragments like this suddenly make sense: n = 1
/1*"\/\//.test(n + '"//')
[0]: https://www.ecma-international.org/ecma-262/5.1/ |
|
As for that expression, meh. You can write intentionally obtuse code in any language. The problem with JS is the behavior that is different from what you'd expect.