Find a mistake

Report a typo

What result will you get after running this code?

const { writeFile } = require('node:fs');

const trickyMistake = '<h1>Find an error<h1>;';

const file = 'mistake.html';

writeFile(file, trickyMistake, (err, data) => {
    if (err) {
        console.log(err);
    }
    console.log(data);
});
Select one option from the list
___

Create a free account to access the full topic