Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyNodeJSfs file reading writingSingle-choice MCQ

What type does `fs.readFileSync` return in each of these two calls?

const a = fs.readFileSync('data.txt'); const b = fs.readFileSync('data.txt', 'utf8');