title: What's the best way in JavaScript to test if a given parameter is a square number?
body: <p>I created a function that will test to see if a given parameter is a square number. </p>
  
  <p>Read about square numbers here: <a href="https://en.wikipedia.org/?title=Square_number" rel="noreferrer">https://en.wikipedia.org/?title=Square_number</a></p>
  
  <p>If the number is a square number, it returns <em>true</em> and otherwise <em>false</em>. Negative numbers also return <em>false</em>.</p>
  
  <p>Examples: </p>
  
  <pre><code>isSquare(-12) // =&gt; false
  isSquare( 5) // =&gt; false
  isSquare( 9) // =&gt; true
  isSquare(25) // =&gt; true
  isSquare(27) // =&gt; false
  </code></pre>
  
  <p>Right now, I am using this method: <a href="http://jsfiddle.net/marcusdei/ujtc82dq/5/" rel="noreferrer">http://jsfiddle.net/marcusdei/ujtc82dq/5/</a></p>
  
  <p>But, is there a shorter more cleaner way to get the job done?</p>