This is a simple JavaScript code to generate Secret Santa pairs for a list of participants.
- Copy the provided array of participants in the
secretsSantavariable. - Run the JavaScript code using a Node.js environment or a browser console.
const secretsSanta = [
['Lucineide', '0'],
['João Pedro', '0'],
['Michele', '0'],
['Luiz', '0']
];
// ... (rest of the code)
console.table(newSecretsSanta);