How does JavaScript define integer variables?
Javascript has no concept of integer variables, and variables can be assigned to any type of values. The numeric type is only $ Number, which does not distinguish between integer, floating point and long integer. Can be directly assigned as an integer. If you must use integers in the process of use, you can use functions such as Math.round(number) and parseInt(string) to round before use.