title: Using Javascript node.js how do I parallel process For loops?
body: <p>I only started to learn javascript 2 days ago so I'm pretty new. I've written code which is optimal but takes 20 minutes to run. I was wondering if there's a simple way to parallel process with for loops e.g.</p>
  
  <p>for (x=0; x&lt;5; x++){ 
  processor 1 do ...</p>
  
  <p>for (x=5; x&lt;10; x++){
  processor 2 do ...</p>