Posts by jrpenet • 16 points
2 posts
-
0
votes3
answers171
viewsA: Trying to manipulate a JSON with JS
You have to parse, so the JS can read the data smoothly. fs.readFile('index.json', 'utf8', (error, data) => { //caso haja erro mostra no terminal if(error){ console.log(error) } //se está tudo…
-
-2
votes1
answer53
viewsA: Javascript - Image directories
You can go in the address bar (this computer/documents/etc) and copy the directory directly from there. You can also as the friend said to use the relative path, but one should pay attention to the…
javascriptanswered jrpenet 16