O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Let’s go back to the Bubble Score code and refactor it into a set of functions. By refactor we mean we’re going to rework how it’s organized, to make it more readable and maintainable, but we’re going to do it without altering what the code does. In other words, when we’re done, the code will do exactly what it does now but it’ll be a lot better organized.

From

Cover of Head First JavaScript Programming

Note

what do you mean by refactoring a code?