Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fs = require('fs')
- const produto = {
- nome:'Celular',
- preco:1249.99,
- desconto:0.15
- }
- fs.writeFile(__dirname + 'arquivoGerado.json', JSON.stringify(produto), err =>{
- console.log(err || 'Arquivo Salvo!')
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement