• 并不是所有函数都有 prototype 属性
      • 构造函数有 prototype
      • 普通函数没有 prototype属性
    • 原型链
      • 使用原型实现继承
      • this
      • new
    • ES6 中的 class 实现继承, extends

    image.png

    https://juejin.cn/post/6844903780035592205