DEV Community

Discussion on: Node.js Under The Hood #5 - Hidden Classes & Variable Allocations

anshulnegitc profile image
Anshul Negi

Doesn't dynamic typed affect the performance of an application, as it has to hop many times, to access the last variable in our case "y"?

stavalfi profile image
Stav Alfi

from the picture in the article:
answer- no.
reason - the object will always point to the newest hidden-class; which will contain x and y :P