-The garbage collector manages all variables inside of YOUScript.
- The moment a variable enters YOUcript’s side, it’ll be registered and it will be deleted when it feels so. That means that even if you create the variable yourself, you’re not supposed to delete it.
- Every variable has a reference counter, when it drops to 0, it gets collected and removed.
- However, outside of the YOUScript kingdom, we have no control over where the variable is stored. Therefore, if you want to prevent a variable from being collected, then increase and decrease the reference counter