Using Operators with Different Types
Learn what happens when we try to add, subtract, and divide strings. We'll cover how JavaScript handles 'abc' + 20. Learn what NaN is. We'll also discuss type coercion, a very import concept in JavaScript.
We'll cover the following
Different Variable Types
We’ve shown these operators being used on numbers only. They can also be used with other variable types.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy