Apigee edge javascript policy memory allocation

Does javascript policy in apigee edge have support for storing variables in stack memory as well as heap memory based on scenarios ?

Huh? What problem are you solving? Why do you care?