As you're making use of template literals, you need to replace the ' with `.
const textOut = `This is what we know: ${textIn}.\nCreated on ${Date.now()}`;
Before template literals following method was used to concatenation.
const textOut = 'This is what we know: '+textIn+'.\nCreated on '+Date.now();