We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Me pide realizar dos archivos uno llamado program.js y otro mymodulo,js para exportar una funcion y asi hago los codigos
// modulo
const fs = require ("fs");
const path = require("path");
function solucion () { let encontrar = fs.readdir(process.argv[2] , (err,files) => {
if(err){ console.error(err); }else { const txtFiles = files.filter(file => file.endsWith('.md')); txtFiles.forEach(file => { console.log(file); }); } }); } module.exports = {solucion};
// principal que es program.js const fs = require('fs');
const recibe = require ("./mymodule");
console.log(recibe.solucion());
// la respuesta que me da esta en la imagen. espero que me ayuden, saludos.
Please delete this section after reading it
// copy your error output here
// copy your code here
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Notes
Me pide realizar dos archivos uno llamado program.js y otro mymodulo,js para exportar una funcion y asi hago los codigos
// modulo
const fs = require ("fs");
const path = require("path");
function solucion () {
let encontrar = fs.readdir(process.argv[2] , (err,files) => {
// principal que es program.js
const fs = require('fs');
const path = require("path");
const recibe = require ("./mymodule");
console.log(recibe.solucion());
// la respuesta que me da esta en la imagen. espero que me ayuden, saludos.
Please delete this section after reading it
If you have a problem with an error message:
Error output
My Code
// copy your code here
The text was updated successfully, but these errors were encountered: