2 Type coercion in JavaScript Please support this book: buy it or donate 2 Type coercion in JavaScriptIn this chapter, we examine the role of type coercion in JavaScript. We will go relatively deeply into this subject and, e.g., look into how the ECMAScript specification handles coercion. 2.1 What is type coercion?2.2 Operations that help implement coercion in the ECMAScript specification2.3 Intermission: expressing specification algorithms in JavaScript2.4 Example coercion algorithms2.5 Operations that coerce2.6 Glossary: terms related to type conversion