Consider the following code:
!!('foo');
The negation operator uses the abstract operation ToBoolean
to perform a type conversion, but my question is - does this involve type coercion?
According to wikipedia http://en.wikipedia.org/wiki/Type_conversion " the word coercion is used to denote an implicit conversion", so yes there is type coercion involved, since the conversion is enforced.
Alo take a look at the answer to this question What is the difference between casting and coercing?