Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
Type Conversions
Most of the time, operators & functions automatically convert the vals given to them to the right type.
Number Conversion
Conversion happens in Mathematical functions & expressions automatically.
A valid string(number) will be converted to valid number
Invalid string(number) results in NaN
Boolean Conversion
Few valid boolean conversions that results in false
Examples of boolean conversion:
Leave y'r thoughts....
Top comments (0)