Skip to content

Instantly share code, notes, and snippets.

@torralbaa
Last active July 15, 2018 21:04
Show Gist options
  • Save torralbaa/f3fe9cb90903a7bb1905748d0a2de7fa to your computer and use it in GitHub Desktop.
Save torralbaa/f3fe9cb90903a7bb1905748d0a2de7fa to your computer and use it in GitHub Desktop.
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);
}
const es = require('./es.js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment