Sorry, didn't read your question right the first time.
NodeJS is a JavaScript engine with a bunch of libraries and an event loop. More specifically NodeJS uses the same JavaScript engine as Google Chrome (V8).
In JavaScript strings are primitive value types and moreover are immutable (as value types generally are). You are therefor passing a value and not a reference. It is impossible to change the value of a string inside a function in JavaScript.
var a = "Some String";
myFunction(a);
console.log(a);// We can know for sure that `a` is still "Some String"*
If this is still unclear you might want to check this question about how JavaScript passes variables around.
* Unless myFunction is defined in the same closure or has explicit access to the variable itself, even in such case, the string a
itself did not change.