Last active
July 15, 2018 21:04
-
-
Save torralbaa/f3fe9cb90903a7bb1905748d0a2de7fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.suma = function (valor1, valor2) { | |
console.log(valor1 + valor2); | |
}; | |
exports.resta = function (valor1, valor2) { | |
console.log(valor1 - valor2); | |
}; | |
exports.multiplicacion = function (valor1, valor2) { | |
console.log(valor1 * valor2); | |
}; | |
exports.division = function (valor1, valor2) { | |
console.log(valor1 / valor2); | |
}; | |
exports.cuadrado = function (valor1) { | |
console.log(valor1 * valor1); | |
}; | |
exports.cubo = function (valor1) { | |
console.log(valor1 * valor1 * valor1); | |
}; | |
exports.raiz = function (valor1) { | |
console.log(valor1 / valor1); | |
}; | |
exports.borrar = function () { | |
console.clear(); | |
}; | |
exports.mostrar = function (arg) { | |
console.log(arg); | |
}; | |
exports.err = function (arg) { | |
console.error(arg); | |
}; | |
exports.advertencia = function (arg) { | |
console.warn(arg); | |
}; | |
exports.falso = false; | |
exports.verdadero = true | |
//Solo funcionan en el modo IGU: | |
exports.pregunta = function (arg, respuesta) { | |
prompt(arg, respuesta); | |
}; | |
exports.información = function (arg) { | |
alert(arg); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const es = require('./es.js'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment