// you must declare it with "let" keyword if you want to release it later let foo = [1, 2, 3, 4]; foo = null; // releases it