I try to understand that how can I get a true logic on the following JavaScript code:

```
var x = "10";
var y = "20";
var result = x + y;
document.getElementById("demo").innerHTML = result;

```

**link:<https://www.w3schools.com/js/tryit.asp?filename=tryjs_numbers_add_strings4>** 

The OUTPUT of the following code is = 1020 in "Addition" operation. In my mind I think it's correct because it's the concatenation of two number as a string.

```
var x = "100";
var y = "10";
var z = x / y;   
document.getElementById("demo").innerHTML = z;

```

**link: <https://www.w3schools.com/js/tryit.asp?filename=tryjs_numbers_string1>**

But the OUTPUT of the following code is = 10 in "Division" operation & it's can't count this two Number as a String. It calculated the two number as number.
\*\*\*\*Please anybody help me to that I will be understand it clearly.\*\*\*\*