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 bosswipe

5 years ago

That has three constants.

4 comments

bosswipe

Reply

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.

    • mkoryak  5 years ago

      True, but we can both agree that this is a better constant than "a". Much better job security in that code.. unless you get fired for writing it, that is

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities