Quick actions

cmd+k|ctrl+k

Navigation

Languages

Operator Logika

Snippet info

Language

JavaScript

Visibility

public

Author

manxglot

Created

2019-08-05T02:04:05Z

Updated

2019-08-05T02:04:05Z

var x = true || false;
var y = true || false;

console.log('x        : ' + x + '<br/>');
console.log('y        : ' + y + '<br/>');
console.log('!x       : ' + !x + '<br/>');
console.log('!y       : ' + !y + '<br/>');
console.log('x and y  : ' + (x && y) + '<br/>');
console.log('x or y   : ' + (x || y) + '<br/>');
console.log('x xor y  : ' + Boolean(x ^ y) + '<br/>');
INFO