Skip to content
JS

Coercion in JavaScript

Course on Master.dev by Kyle Simpson

View on Master.dev (opens in a new tab)
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
  1. 01

    Primitive Types

    1. Introduction
    2. Additional Resources
    3. Primitive Types
    4. typeof
    5. Special Values: NaN
    6. Special Values: Negative Zero
    7. Special Values: Quiz
    8. Natives
  2. 02

    Coercion

    1. ToString
    2. ToNumber
    3. ToBoolean
  3. 03

    Implicit vs. Explicit Coercion

    1. Explicit Coercion: Strings & Numbers
    2. Explicit Coercion: Booleans
    3. Implicit Coercion: Strings & Numbers
    4. Implicit Coercion: Booleans
    5. Double-Equal Issues
    6. Implicit Coercion: The Bad Parts
    7. Implicit Coercion: The Safe Parts
    8. Double vs. Triple Equal
    9. Helpful Implicit Coercion
    10. Coercion Resources & Surprises

Similar JavaScript courses

  1. Hardware with Arduino & JavaScript

    Master.dev · Steve Kinney · 22 lessons · Sept 2023

    3 h 1 minSubscription
    Master.dev22Sept 2023
  2. Authorization with OAuth 2.0 in JavaScript

    Educative · Educative · 12 lessons · Mar 2025

    Beginner3 hSubscription
    Educative12Mar 2025
  3. Blogging Using the Blogger API in JavaScript

    Educative · Educative · 13 lessons · Nov 2024

    Beginner3 hSubscription
    Educative13Nov 2024
  4. Exploring Space with NASA APIs in JavaScript

    Educative · Educative · 10 lessons · Nov 2024

    Beginner3 hSubscription
    Educative10Nov 2024
  5. Beginner3 h
    Codecademy2Dec 2022
  6. Beginner3 h
    Codecademy2Nov 2018
  7. Beginner3 h
    Codecademy2Dec 2022
  8. Using JavaScript in Websites

    Master.dev · Brian Holt · 37 lessons · Sept 2019

    3 h 3 minSubscription
    Master.dev37Sept 2019

A hyphen means the provider's catalogue does not state the value.

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.

    Compare