一句话解释 Javascript 中的闭包

闭包的概念:为包含外部变量的函数及外部变量所创建的内存栈叫闭包闭包的作用:通过函数调用的方式改变一个变量从而防止直接修改变量Closures are created whenever a variable that is defined outside thecurrent scope is ...

一句话解释 Javascript 原型 prototype

Javascript 对象基于原型对象(prototype)创建,创建后增加一个属性 "__proto__" 来指向 prototype 实例(继承)