I was testing the library link , this is my code
var synaptic = require('synaptic'); // this line is not needed in the browser
var A = synaptic.Neuron();
var B = synaptic.Neuron();
A.project(B);
A.activate(0.5); // 0.5
B.activate(); // 0.3244554645
copy it from the git
but he tells me
Can not read property 'project' of undefined
install it like this: npm install synaptic --save