WTFJS عجائب وطرئف الجافا سكربت
I’m talking here about WTFJS blog amazing things there.
Some of these snippets are bugs in the ECMA compiler scheme, but most of snippets are so innovative and gonna blow your mind.
launch your console and try this
var foo = ; console.log(foo == !foo); console.log(foo == foo);
or maybe u should try this out
"3" -+-+-+ "1" + "1" / "3" * "6" + "2"
then try this and you’ll see
console.log( (!+)[+]+(!+)[+!+]+([!]+[])[+!++[+]]+(!+)[!++!+] )
what about this
var Z = "constructor";
وعلى رأي حزلقوم دا شيئ لا يتحملة بشر ولا بني ادمين ساعتك
**note: this article wasn’t revised grammatically (yet) so I’m sorry if there is any kind of errors and I promise I’ll revise it as soon as I got some time time.