I always start my node.warn's with an identifier so the first would be: node.warn("DBG01: message" + variable_name);
and the second: node.warn("DBG02: message" + variable_name);
however if you want something like:
=============
dbg01 testing
=============
then add a '\n' where you want the breaks like this:
I am just now sitting down with a text editor going through the flows trying to reconsile (?) what is the problem with the flows which are working on one machine and not on another.
I'll try it shortly.
Unexpected symbol line 3 at the \n at the end of the variable_name\n; part.
var variable_name = "test";
var y = 'xxxxxxxxxxxxxxxxxxxx\n';
var x = y + " Title : " + variable_name\n;
x = y;
return msg;
In JavaScript, single and double quotes are really the same, chose one and stick with it until you need to do something odd like trying to nest a set of quotes within a string.
back-ticks (Template literals) are very different and only work in newer versions of nodejs and newer browsers. You can do all sorts of clever things with them such as multi-line strings and embedded JavaScript code. Avoid until you've mastered the basics. Still avoid unless you know that you are only working with newer environments. Still avoid until you hit a problem with normal quotes that you can't fix without lots of code.