DEV Community

Discussion on: Initialize a const variable inside a function getting called simultaneously

Collapse
 
parthchokshi profile image
Parth Chokshi

Ah! Yes, if it is outside function, it will remain there even after the function execution and won't be deallocated. Makes sense. Thanks.