- 2
What is coercion in JavaScript ?
1 Answer
+ 2
Coercion is the act of convert a var from a type to another either in implicit or explict manner.
A common example is when you add a number with a string like:
1+' apple'
where 1 is converted implicitly in string