Ad

Just turned it into a one line arrow function :P

Code
Diff
  • const sum = (a,b) => a+b;
    • function sum(a,b) {
    • return 1; // wrong returning
    • }
    • const sum = (a,b) => a+b;