here is the code:
const textIn = fs.readFileSync('./txt/input.txt', 'utf-8');
const textOut = 'this is the addition: ${textIn}, \nCreated on ${Date.now()}';
fs.writeFileSync('./txt/output.txt', textOut);
The content of the input.txt file is "hello world". What should happen is the content of the output.txt file should read "this is the addition: hello world 1614606057967.
but it reads...
this is the addition: ${textIn}
Created on ${Date.now()}
Any ideas why?