We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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()
─────────────────────────────────────────────────────────────────────────────
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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:
────────────────────────────────────────────────────────────────────────────────
"43" == "43"
"" == ""
────────────────────────────────────────────────────────────────────────────────
✓
Submission results match expected
✗
Used asynchronous method: fs.readFile()
FAIL Your solution to MY FIRST I/O! didn't pass. Try again!
─────────────────────────────────────────────────────────────────────────────
The text was updated successfully, but these errors were encountered: