字节笔试

简答题

  • https 握手
  • 隐藏节点的方法,区别
  • jsonp 原理

编程题

  • 求数组最大深度
let arr = [1,2,[3,[4,5]],6]

// 返回 3
  • 给重复字符串添加序号
let arr = ['ab','b','ab','c']

// 返回 ['ab1','b','ab2','c']

填空题

console.log(1);
let a = new Promise((_, reject) => {
  console.log(2);
  reject(3);
})
  .then(console.log)
  .catch(console.log)
  .then(() => 4);
console.log(5);
a.then(console.log);

求输出顺序

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容