constructor 예제 - 날짜 경우
<p id="demo"></p> <script> var d = new Date(); document.getElementById("demo").innerHTML = d.constructor; </script> 결과보기
<p id="demo"></p>
<script>
var d = new Date();
document.getElementById("demo").innerHTML = d.constructor;
</script>
결과보기
결과값: function Date() { [native code] }