JavaScript has come a long way since its birth 26 years ago at Netscape. Some of these can still be used but it’s highly discouraged. There is no place for optimization inside it, since you can’t predict if variable will refer to a property or an outside variable. It violates lexical scope, making program analysis very hard or even infeasible.

5m read timeFrom dev.to
Post cover image
Table of contents
Object.prototype.watch and Object.prototype.unwatch methodswith statementExpression closuresObject.observe and Object.unobserve methodslet expressions and let blocksHTML wrapper methods on stringsParallelArrayConclusion
4 Comments

Sort: