+ 2
how subtraction two number, without use minus operator (-)?
use of other operators
1 Odpowiedź
+ 2
You could use bitwise operators
JS:
var a =6;
var b = 2;
var subtract;
var subtract = a + (~b +1);
console.log(subtract); //4
use of other operators