✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Node.js
Цей код приховує баг. У якому випадку виконається рядок console.log(data.length)?
readFile('x.txt', (err, data) => {
if (err) {
console.error(err);
}
console.log(data.length);
});