JavaScript allows a variable to hold any data type at any time.A variable can be assigned a string initially and then be reassigned to an integer.JavaScript also attempts to perform all necessary type conversions.