Neural Network VS Algorithm

Neural networks are pretty amazing and now you can just have one run right in your browser with brain.js. I wanted to learn about this whole neural network thing, so I decided to see how accurately I could get a neural network to replicate a fairly complex algorithm.