I am trying output some text from a function to a text node using:
let var1 = "";
var1 = var1 + "new text \r \n";
var1 = var1 + "new text 2 \r \n";
msg.payload = var1;
return msg;
It works fine and var1 displays in the text node, but I need it to add a new line constant between new text and new text 2, so far I am seeing all new text and new text 2 on the same line