Check out a free preview of the full Coercion in JavaScript course:
The "Explicit Coercion: Strings & 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 .