class Neuron { constructor(numInputs) { this.weights = []; this.numInputs = numInputs; for (var i=0; i