Skip to main content
added 331 characters in body
Source Link
emanresu A
  • 44.2k
  • 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.

JavaScript (Node.js), 108 bytes

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...

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.

added 17 characters in body
Source Link
emanresu A
  • 44.2k
  • 5
  • 100
  • 240

JavaScript (Node.js), 111108 bytes

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

Try it online!Try it online!

Probably easy :(Fixed a bug that allowed errors...

JavaScript (Node.js), 111 bytes

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

Try it online!

Probably easy :(

JavaScript (Node.js), 108 bytes

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...

Source Link
emanresu A
  • 44.2k
  • 5
  • 100
  • 240

JavaScript (Node.js), 111 bytes

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

Try it online!

Probably easy :(