Asked • 06/19/19

Can !a!=!!b^!!-!a||!+!a|!c return anything other than 1?

I was playing the Javascript game with somebody and we were having fun making ridiculous and absurd expressions to make our inputs get a particular output. This little charming one !a!=!!b^!!-!a||!+!a|!c always seemed to return `1`. I tried to reason it out, but I gave up after losing track of all the `!`s. Are there any values for `a`, `b`, and `c` which do not return `1`? If not, why does it always return `1`?

1 Expert Answer

By:

Connor M. answered • 06/20/19

Basics-First Math, Computer Science, and Exam Prep Tutor

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.