title: Declare and initiate multiple javascript variables
body: <p>Im a bit confused regarding the correct way to declare and initialize multiple variables of same types correctly. so they are actually their own and not references to others/copies.</p>
  <p>my research brings me to the following, is it correct? and/or is there a better way:</p>
  <pre><code>var str1,str2,str3,arr1,arr2,arr3,obj1,obj2,obj3;
  
  str1=str2=str3=&quot;foo&quot;;
  
  arr1=arr2=arr2=[];
  
  obj1=obj2=obj3={};
  </code></pre>
  <p>(for this i want to use var, not let and const)</p>