var x=23;y=13 console.log( x ??=y); //returns 23. var x =0; console.log(x ??= 12); //this will return 0;
Preview:
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