For example, will this data
variable be garbage collected instantly?
{
const data = new Array(10000);
}
...and if so, does this mean using scope-blocks in JavaScript can be a practical method of localizing short-lived data? I know this shouldn't be high priority or anything, but I'm just curious.