We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab36d40 commit dbdda16Copy full SHA for dbdda16
addpost.js
@@ -6,5 +6,5 @@ const newPost = {
6
content: 'Este es el contenido de mi primer post'
7
};
8
9
-fs.writeFileSync(path.join(__dirname, 'hello_post.json'), JSON.stringify(newPost), 'utf8');
+fs.writeFileSync(path.join(__dirname, '..', 'hello_post.json'), JSON.stringify(newPost), 'utf8');
10
console.log('Archivo post.json creado exitosamente');
0 commit comments