title: In JS how to print string in while loop multiple times?
body: <pre><code>    var loop = function(){   
      while(loop&lt;3){   
  
     console.log("I'm looping!");      
      loop++;    
    }    
  };   
  
  loop();    
  </code></pre>
  
  <p>I tried in this way... i need to print above message 3 times... how to do it ??</p>