Coercion in JavaScript Coercion in JavaScript

Explicit Coercion: Strings and Numbers

Check out a free preview of the full Coercion in JavaScript course:
The "Explicit Coercion: Strings and Numbers" Lesson is part of the full, Coercion in JavaScript course featured in this preview video. Here's what you'd learn in this lesson:

Explicit coercion happens when it’s obvious from the code that one type is being converted to another. Kyle shares a few code examples demonstrating ways to explicitly coerce values from String to Numbers and vice versa .

Get Unlimited Access Now