In javascript is this bug? [duplicate]

Here iam trying to see out put of

var a = 10 + "5";

output: 105; and datatype= string when we use string with number it deal as string
but my question is when i try

var a = 10 – “5”;

output: 5 and datatype: number
how this work is this bug?