全篇答案密码为pwd

1. 对象的赋值与拷贝 输出是?const members = [ person ];person = null

  1. let person = { name: 'Lydia' }
  2. const members = [ person ]
  3. person = null
  4. console.log(members)

基础语法 输出是?!typeof ‘aaa’ === ‘string’

  1. const name = 'Lydia Hallie'
  2. console.log(!typeof name === 'object')
  3. console.log(!typeof name === 'string')

作用域 代码输出是什么

  1. var a = 10;
  2. (function() {
  3. console.log(a);
  4. a = 5;
  5. console.log(window.a);
  6. var a = 20;
  7. console.log(a);
  8. })()

api ['1', '2', '3'].map(parseInt) what & why

防抖、节流 什么是防抖和节流?有什么区别?如何实现?