- 2

What is coercion in JavaScript ?

14th Oct 2022, 5:35 AM
Rajan K
Rajan K - avatar
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
14th Oct 2022, 6:49 AM
KrOW
KrOW - avatar