'use strict'; const fs = require('fs'); process.stdin.resume(); process.stdin.setEncoding('utf-8'); let inputString = ''; let currentLine = 0; let length; process.stdin.on('data', function(inputStdin) { inputString += inputStdin; }); process.stdin.on('end', function() { inputString = inputString.split('\n'); length = inputString.length; main(); }); function readLine() { return inputString[currentLine++]; } /* * Complete the 'mayorMenosMenor' function below. * * The function is expected to return an INTEGER. * The function accepts INTEGER_ARRAY numeros as parameter. */ function mayorMenosMenor(numeros) { //Tu código aquí } function main() {
function add(a, b) { return a + b; } add(1, 2)