Coercion in JavaScript
Course on Master.dev by Kyle Simpson
- 3 h 1 min
- LengthVideo runtime
- Subscription
- Price modelMaster.dev plan
- 21
- Lessons
- Aug 2015
- Published19 Aug 2015
About this course
Description from Master.dev
Most people will cite coercion and the == operator as the black magic that should never show up in your programs. Not only is coercion much easier to learn and properly apply than you've believed, but avoiding it is missing out on important clarifications in style and readability of your code.
What it covers
21 lessons
- 01
Primitive Types
- Introduction
- Additional Resources
- Primitive Types
- typeof
- Special Values: NaN
- Special Values: Negative Zero
- Special Values: Quiz
- Natives
- 02
Coercion
- ToString
- ToNumber
- ToBoolean
- 03
Implicit vs. Explicit Coercion
- Explicit Coercion: Strings & Numbers
- Explicit Coercion: Booleans
- Implicit Coercion: Strings & Numbers
- Implicit Coercion: Booleans
- Double-Equal Issues
- Implicit Coercion: The Bad Parts
- Implicit Coercion: The Safe Parts
- Double vs. Triple Equal
- Helpful Implicit Coercion
- Coercion Resources & Surprises
Similar JavaScript courses
Same topic, nearest in length, up to three from any one provider.
Data read from the Master.dev catalogue on 28 Nov 2026. How the data is collected.