We show how easy it is to adapt the general-purpose state machine code we wrote to represent a new state machine. It's not necessary to have watched the last video, but it may help to have the code we wrote.
GitHub Source Code: https://github.com/intermation/video_...
Timestamps
00:00 | Intro
00:16 | Review the JavaScript state machine code
02:32 | The RegEx for this video
04:18 | The state diagram for this RegEx
09:17 | The transition table for this state diagram
11:52 | Modifying JavaScript constants to represent this FSM
18:52 | Handling errors in the next state function
20:05 | Demonstration of code with a matching sequence
21:05 | Demonstration of code with a non-matching sequence
21:24 | Demonstration of code with an error in the sequence
Hashtags
#javascript #state #machine