Perceptron in Vanilla JS

Click on the canvas to train.