string externalization

This commit is contained in:
ksandhu16 2018-09-24 16:48:30 -04:00 committed by GitHub
parent 8d461adb8b
commit 988c5df598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
```
const data = new Uint8Array(Buffer.from('Hello Node.js'));
fs.writeFile('message.txt', data, (err) => {
fs.writeFile('message.txt', gettext("Hello World"), (err) => {
if (err) throw err;
console.log('The file has been saved!');
});