Skip to main content
3 of 3
added 331 characters in body
emanresu A
  • 44.3k
  • 5
  • 100
  • 240

JavaScript (Node.js), 108 bytes, Double Cracked

f=y=>(x=>{for(;typeof y=='string'&&x===x;);})(f['constructor'](`return +[${y.replace(/[^W-`*-0]/g,'')}]`)())

Try it online!

Fixed a bug that allowed errors...

My intended solution was [][+[]]+[]][+[]. This evaluates to coercing undefined to an integer, which is NaN, and NaN !== NaN.

emanresu A
  • 44.3k
  • 5
  • 100
  • 240