I am sending an array to my server using ajax
$.ajax({
url: "/sendToDb",
type: "POST",
data: {myArray: top200}
});
I can log out the array using req.body in my Post.
app.post('/sendToDb', urlencodedParser, function(req, res){
console.log(req.body);
});
Using req.body, how can I log out an individual index of the array in my server? (Go easy on me. I'm a fairly new coder).