x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript 数学</h1>
<p>Math.LN2 返回 2 的自然对数,大约为 0.693:</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = Math.LN2;
</script>
</body>
</html>