Function arguments are two bit representation of numbers ('101', '1', '10'...)
, and must return their sum in decimal representation.
- Not allowed to use
parseInt
andtoString
methods
console.assert(calculate('10', '10') === 4);
console.assert(calculate('10', '0') === 2);
console.assert(calculate('101', '10') === 7);