I have a question regarding logical operations in js:
console.log('XXX' !== ('ZZZ' && 'XXX' && 'No Code Available' && ''))
console.log(('XXX' !== 'ZZZ') && ('XXX' !== 'XXX') && ('XXX' !== 'No Code Available') && ('XXX' !== ''))
The first one is true, the second one is false. I thought the first and the second is the same statement, but the first one is shorter.
How can I shorten the second one if that is correct?