Closed
Description
- Version: 14.1.0
- Platform: Windows 10
- Subsystem: none
- error: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (7)
this is the code:
const fs = require('fs')
fs.writeFileSync('notes.txt', 'NODEJS')
fs.appendFileSync('notes.txt', 7 )
I expected to get a file with: NODEJS7
I got : NODEJS