It’s much better to make your own function that uses bitwise operations to do addition.
function add(a, b) {
while (b !== 0) {
// Calculate carry
let carry = a & b;
// Sum without carry
a = a ^ b;
// Shift carry to the left
b = carry << 1;
}
return a;
}
(For certain definitions of better.)
Since it needs to be compiled to JavaScript in order to be used, I kind of consider it a different language. Yes, it’s a strict superset of JavaScript, but that makes it different.