x
 
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Errors</h2>
<p>You cannot set the number of significant digits of a number to 500:</p>
<p id="demo">
<script>
let num = 1;
try {
  num.toPrecision(5);
}
catch(err) {
  document.getElementById("demo").innerHTML = err.name;
}
</script>
</body>
</html>