Preview:
var x=23;y=13
console.log(  x ^=y);
/*this returns 26. this is because the binary value of 23 is 10111 and binary value of 13 is 1101. the XOR operation between them gives 11010. which is 26 in decimal. */
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter