Typescript Static Variable In Function On Calculator