programmers are awesome. ;P official javascript documentation:
Data Type ConversionJavaScript is a dynamically typed language. That means you do not have to specify the data type of a variable when you declare it, and data types are converted automatically as needed during script execution. So, for example, you could define a variable as follows
(
Read more... )