In JavaScript "11" + 1 is 111,
but "11" - 1 gives 10
How?
Can anyone please help me with this ?

Sounds correct to me as the first is string + some other string.
The second example uses a minus sign gives up a clue it's math and it does such as math.

Also the following can really test a new developer.
jshell.png

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.