onexit ((() The function cannot retrieve globally defined variables, retrieving value is undifind
The Little DreamIs it Python or JS? Python needs to add global declarations.