Below is the JavaScript code. How can I send the players array to node.js?
let players = []; for(var i=0; i<22; i++){ players.push($(&qu