Incorrect example

Report a typo

Here's a screenshot of a file tree and HTML content:

Opened code editor with the file explorer on the left side with three files – index.js, list.html, package.json and the editor on the right side with html code of list.html file

Something is wrong with this code. Find the easiest solution to fix it so that our list is extended with one more movie title:

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

writeFileSync('list.html', '<p>Blade</p>');

You need to rewrite the second line only.

Enter a short text
___

Create a free account to access the full topic