Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by mkoryak

5 years ago

thats too enterprisey, at a startup you would write it like this:

const charA = (false+"")[1];

5 comments

mkoryak

Reply

bosswipe  5 years ago

That has three constants.

  • mkoryak  5 years ago

    is this better?

    const charA = (![]+[])[+!+[]];

    • mkehrt  5 years ago

      I cannot even parse this. What is going on here?

    • pdpi  5 years ago

      [] is still a constant.

      1 reply →

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities