See in in action here. Reload the page a couple of time to see how wrong the neural network was to divide the points into 2 teams. Perfect would be if all are clearly separated by diagonal line.
This is an easy example for a super-easy neural network written from scratch in Javascript without any framework or library. It's heavily inspired by a video published by MPJ on his youtube channel Fun Fun Function.