Ad
Code
Diff
  • var add = (a, b) => b ? add(a ^ b, (a & b) << 1) : a;
    • // write a add function that doesn't use the plus symbol
    • function add(a, b){
    • return a + b;
    • }
    • // Make sure to view the test cases to see how this test fails
    • var add = (a, b) => b ? add(a ^ b, (a & b) << 1) : a;