Last active
October 19, 2022 13:44
-
-
Save furenku/1d59e483a4e58b0fb4a55ca0d528b7ca to your computer and use it in GitHub Desktop.
funciones.js
This file contains hidden or 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 moment = require("moment") | |
function generarTextoHora() { | |
const hora = moment().format("hh:mm:ss") | |
const mensaje = `La hora es: ${ hora }` | |
return mensaje | |
} | |
function mostrarHora() { | |
const texto = generarTextoHora() | |
console.log( texto ) | |
} | |
module.exports = { | |
generarTextoHora, | |
mostrarHora | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment