title: JavaScript big integer square root
body: <p>This concerns the new JavaScript BigInt type, as supported in Chrome and Node v10.4</p>
  
  <p>Both the following lines throw an error:</p>
  
  <pre><code>Math.sqrt(9n)
  Math.sqrt(BigInt(9))
  </code></pre>
  
  <p>Error is:</p>
  
  <blockquote>
    <p>Cannot convert a BigInt value to a number</p>
  </blockquote>
  
  <p>How do I get the square root of a BigInt in JavaScript? TIA</p>