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

Which fix removes the bug?

if (status = 'ready') {
  start();
}
  1. Change = to ===
  2. Change = to =>
  3. Wrap status in quotes
  4. Declare status with let
A single = assigns and then evaluates truthy, so the branch always runs.
Play Problem Solving ▸