Get to know limits of JavaScripts when declaring or allocating variables and not a good option to make complicated operation in web front-end, main reason is because JS engine is way it is.(Get a sense of Turing-completeness)
-
Use
letalways. -
Use
varif neccessary.Result: unexpected calulation of numbers.
Solution: Use Tsx.