What is the Output of the following lines:
Kindly post your respective answers so that we all can get some clarity in depth.
console.log(1 +- "2" + "2");
console.log(1 +- "1" + "2");
console.log(+"1" + "1" + "2");
console.log("A"-"B"+"2");
console.log("A"-"B"+2);
Note:
The main purpose of asking this question here is:
Why 2 values (Undefined & some value) are printing when checking in console?
Can any one please solve my doubt?
Thanks inadvance.