A reference for finite state machine logic and functionality. Includes simple and complex examples. (Basic, all-in-one concept vs object-oriented state-design with transition logic.) Implemented using Javascript.