Skip to content

Instantly share code, notes, and snippets.

@stuymedova
Last active August 18, 2023 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuymedova/ec10c85b5fc19608bcba23b0370cc062 to your computer and use it in GitHub Desktop.
Save stuymedova/ec10c85b5fc19608bcba23b0370cc062 to your computer and use it in GitHub Desktop.
// Node.js
const sum = (a, b) => {
return Number(a) + Number(b);
};
process.stdin.on('data', (data) => {
const [a, b] = data.toString().split(' ');
const result = sum(a, b);
process.stdout.write(result.toString());
process.exit(0);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment