f
Sat Apr 22 2023 23:45:13 GMT+0000 (Coordinated Universal Time)
Saved by
@mojjeasy
var x=23;y=13
console.log( x ^=y);
var x=23;y=13
console.log( x |=y);
/*this returns 31. this is because the binary value of 23 is 10111 and binary value of 13 is 1101. the OR operation between them gives 11111. which is 31 in decimal. */
content_copyCOPY
Comments