type conversion in JavaScript

JavaScript is loosely typed language and most of the time operators automatically convert a value to the right type but there are also cases when we need to explicitly do type conversions.
```
console.log("1"+"2"); //12
console.log("1"-"2"); // -1
```