Is Subtraction of string possible?
For Making it simple why cant we take a subtraction operation for string Here is the proof.
I have taken two stings say String1 and stirng2. I have added it gave a result which result in glue of two strings two gether(Concatenation).
But if I apply the subtraction operation the result I got is NaN which clearly says that Subtraction operation should only perform on Numbers as you already know that NaN stands for Not a Number.
Comments
Post a Comment