title: Node.js execute command synchronously
body: <p>Hello to all forum members.
  I'm pretty new in terms of node js,What I want to do is execute commands synchronously</p>
  
  <p>A simple example:this is my code below.</p>
  
  <pre><code>var arr=fun_test(){blah blah blah}
  console.log(arr);
  </code></pre>
  
  <p>What actually happens is that I do the second command before the first one,
  I will be happy for any help.</p>