Closed kingram6865 closed 4 years ago
The Code:
const fs = require('fs'); const file = process.argv[2]; const str = fs.readFileSync(file).toString(); const result = str.split('\n'); console.log(result.length-1);
Why the FAIL?
The second testing result shows that you used synchronous method, however in Exercise 4 an asynchronous method should be used.
Closing since question was answered. Thanks @jordanSu
The Code:
Why the FAIL?