SOURCE

const num=2
const fun=function(){}
console.log(num instanceof Number)//不能判断基本数据类型
console.log([] instanceof Array)
console.log([] instanceof Object)
console.log({} instanceof Array)
console.log({} instanceof Object)
console.log(fun instanceof Object)
console.log(fun instanceof Function)



console 命令行工具 X clear

                    
>
console