Skip to main content
1 of 4
Eliseo D'Annunzio
  • 7.5k
  • 1
  • 36
  • 73

JavaScript ES5, 25

(typeof(!!(3-3)))[2+3]

I took a different approach, exploiting the fat arrow functions as well as the typeof return type, which is a string. So converting a number to a boolean was easier then, had to encase it in parentheses before pulling the 5th element of the resulting string...

Eliseo D'Annunzio
  • 7.5k
  • 1
  • 36
  • 73