Variáveis ​​na função auto -invocada

let/var declared inside of a self invoking function go away outside of it. consts remain. So if you want it to disappear, use var/let. If you want it to stay, const or nothing
Javasper