title: JS - append to the same string in recursive scenario
body: <p>I read that in JS stings are immutable, and even though the default for JS appears to be "pass by reference", passing the same string around a recursive hierarchy will not append to the same string but rather create copies.</p>
  
  <p>My scenario requires for a single string object to be created once, and passed around in a very deep and long hierarchy of recursive and other functions, so how can I achieve this? I am a C++ guy, and in C++ it is quite easy... just pass by reference and all functions work on the same bit of string.</p>