js中一切都是对象

<script>
    function cat(){}
    var cat = new cat();
    console.log(cat.constructor)
    console.log(typeof cat)
    var a="dsuif"
    console.log(a.constructor)
    console.log(typeof a)
</script>

 

posted on 2018-11-19 18:54  xxcxxc  阅读(278)  评论(0编辑  收藏  举报