Appending

Report a typo

Write a sync method to append data to the file named fox.txt. This file already has some text. Make sure that a new string is put on a new line. The string is I am a happy fox!

Here's the beginning of the code. You don't need to copy it into your answer, just add the continuation of the code.

const fs = require("node:fs");
Enter a short text
___

Create a free account to access the full topic