The question asks in all, Will my variables set by another passed or dynamic variable be reset if untouched for X amount of time?
I looked over ECMAScript specification and I'm still a little confused as to what and when things gets garbage collected. I looked at Lifetime of JavaScript variables and its answer say
"if an identifier is reachable (through a direct pointer or a closure), it shouldn't be Garbage Collected."
So am I gettin this right?
Basically garbage collection happens if variables are set by another passed value.
What about in a ternary operator?
I alternate between two different functions to run 3 every month using a ternary operator
as a switch
will it know it did condition 1
3 months prior and do condition 2
or am I at risk of garbage collection and it will run condition 1
every time?