<button onclick="homzzang()">클릭</button> <p id="demo"></p> <script> function homzzang() { document.getElementById("demo").innerHTML = Math.LOG10E; } </script> 결과보기
<button onclick="homzzang()">클릭</button>
<p id="demo"></p>
<script>
function homzzang() {
document.getElementById("demo").innerHTML = Math.LOG10E;
}
</script>
결과보기
결과값: 0.4342944819032518