Automatic type conversion
When JavaScript tries to manipulate a "wrong" data type, it will automatically convert to the "correct" data type.
And often this kind of implicit conversion may bring many inexplicable problems to the program, and it is difficult for us to find out the cause, so you must pay more attention when writing code.
Null is converted to 0
Null is converted to "null"
1 is converted to "1"
"5" is converted to 5
Automatically convert to a string
When you try to output an object or a variable, JavaScript will automatically call the toString() method of the variable : give
it a thumbs up if you like it!