$ ./guess_the_languageProblem Solving — fix the bug
Problem Solving — fix the bug · easy · #1

Which fix removes the bug?

function add(a, b) {
  a + b;
}
  1. Change + to *
  2. Rename the function
  3. Add return before a + b
  4. Remove the parameters
The function computes the sum but never returns it.
Play Problem Solving ▸