atom-community / atom-community/atom-script

Run js but get a wrong result

Open
#874 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.