Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my-first-async-io. failed #7

Open
DouglasVDM opened this issue Jun 7, 2021 · 0 comments
Open

my-first-async-io. failed #7

DouglasVDM opened this issue Jun 7, 2021 · 0 comments

Comments

@DouglasVDM
Copy link

Hi, everyone @leochilds.
I checked my code against this solution and it's the same but my 2nd test fails.
See below.

`var fs = require('fs');
var file = process.argv[2];

fs.readFile(file, function (err, contents) {
var lines = contents.toString().split('\n').length - 1;
console.log(lines)
// console.log(err)
});`

Your submission results compared to the expected:

             ACTUAL                                 EXPECTED

────────────────────────────────────────────────────────────────────────────────

"43" == "43"
"" == ""

────────────────────────────────────────────────────────────────────────────────

Submission results match expected

Used asynchronous method: fs.readFile()

FAIL Your solution to MY FIRST I/O! didn't pass. Try again!

─────────────────────────────────────────────────────────────────────────────

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant