Skip to main content
added 160 characters in body
Source Link
Stephen
  • 14k
  • 3
  • 52
  • 117

JavaScript (ES6), 42 bytes, Cracked

x=>{while(!(Array.isArray(x)&&x==",,,"));}

An empty array of length 4 (new Array(4)), when coerced into a string with ==, becomes ,,,.

Try it online!

JavaScript (ES6), 42 bytes

x=>{while(!(Array.isArray(x)&&x==",,,"));}

Try it online!

JavaScript (ES6), 42 bytes, Cracked

x=>{while(!(Array.isArray(x)&&x==",,,"));}

An empty array of length 4 (new Array(4)), when coerced into a string with ==, becomes ,,,.

Try it online!

Source Link
Stephen
  • 14k
  • 3
  • 52
  • 117

JavaScript (ES6), 42 bytes

x=>{while(!(Array.isArray(x)&&x==",,,"));}

Try it online!