Preview:
var x=23;y=13
console.log(  x &&=y);
//since x is a non-zero number, then x will be made 13.
var x =0;
console.log(x &&= 12);
//this will return 0; since x is zero
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