JavaScript is a dynamically typed language, meaning that the interpreter determines the type of the variable at runtime. In practice, this allows us to use the same variable to store different types of data in the same code.
https://stackabuse.com/javascript-check-if-variable-is-a-number/
https://stackabuse.com/javascript-check-if-variable-is-a-number/