Quick actions

cmd+k|ctrl+k

Navigation

Languages

operator logika

Snippet info

Language

JavaScript

Visibility

public

Author

indrakamahendra

Created

2019-10-01T19:34:14Z

Updated

2019-10-01T19:34:14Z

var x = true;
var y = true;
 
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