|
|
|
|
|
by jhaglund
4749 days ago
|
|
Assignment within the brackets, that kinda surprised me > a = []
> a[a[typeof a]='huh', void a] = 'puh'
> console.log(a)
[object: "huh", undefined: "puh"]
huh... you can do this too > a = []
> a[a[a[typeof a]='huh'] = 'puh'] = 'woh'
> console.log(a)
[object: "huh", huh: "puh", puh: "woh"]
|
|
The only thing to really look bad is chrome, which is surprisingly easy to kill.