DEV Community

Discussion on: Use Closures for Memory Optimizations in JavaScript (a case study)

Collapse
 
wagyourtail profile image
wagyourtail

With the given example, Im pretty sure v8 would be capable of optimizing away the "Math.pow" to a constant..