Hi all,
As part of my #100DaysOfCode challenge I am writing a ‘executable diagram’, and one of the examples of the project is a JavaScript Calculator that pass all the tests of freeCodeCamp .
I am really happy with it and I wanted to share it:
note:
-
The diagram is executable in the sense that is a representation of the state machine that control the logic of the program.
-
If you write in the console:
show='path'
you can see all the states/edges visited during the execution -
To go back to only highligth the current state/edge write in the console:
show='currentPath'
-
Is posible to move the diagram (‘click and drag’), zoom in (‘double click’ the diagram) and zoom out (shift + ‘double click’ the diagram)
Cheers and happy coding