state pattern you are lightning! - 401-advanced-javascript-aimurphy/seattle-javascript-401n13 GitHub Wiki
Design Patterns - typical solutions to commonly occurring problems in software design. They are like pre-made blueprints that you can customize to solve a recurring design problem in your code. You have the idea but not the steps--the implementation is up to you. -->Behavioral Patterns - Behavioral design patterns are concerned with algorithms and the assignment of responsibilities between objects -->State Pattern - Lets and object alter its behavior when its internal state changes. It appears as if object has changes its class.
sources: