atom-community / atom-community/atom-script
Run js but get a wrong result
Open
- Dominant language
- JavaScript
- Stars
- 730
- Forks
- 264
- PR merge metrics
- No merged PRs in 30d
Description
##### Platform: `linux`
---
i write a program about reading a file from local,then console it.
but when i run it with script,it show me undefined.
`fs.readFile('sample2.txt', 'utf8', function(err, data) {
console.log(data);
});`
Contributor guide
Assessment
This issue has not been assessed yet.