
8.1 投简历
8.5 收到约面电话
8.12 17:30 一面(≈60min)
面试平台是牛客,面试官很和善,全程没有冷脸,不会的时候会引导提示
1、20min笔试(38个选择题,单选和多选混合)
面试官给笔试链接,共享屏幕他看着做……
2、自我介绍
3、判断数据类型的方法(typeof、instanceof、Object.prototype.toString.call()
4、instanceof 可以判断基本类型吗?(不能,只能判断引用类型
5、typeof 函数 会返回什么?(function,面试官说object,我觉得他说错了…
6、new操作符都做了什么事?
7、手写new
function myNew(fn,...args){
if(typeof fn != 'function'){
console.error('ErrorType')
return
}
let newObj = Object.create(fn.prototype)
let r