console.log("0b111" ^ "0b001"); // 6
console.log(0b111 ^ 0b001); // 6
Though I can do this, is there any way to convert "0b111" to numeric literals 0b111 ? thanks.
console.log("0b111" ^ "0b001"); // 6
console.log(0b111 ^ 0b001); // 6
Though I can do this, is there any way to convert "0b111" to numeric literals 0b111 ? thanks.