console.log(4 + "3");
console.log(4 - "3");
- ’43’, 1
- ‘7’, Error
- Error, Error
- None of the Above
Answer:
- ’43’ and 1
Explanation
- 4 + ‘3’, here since we have one item as string, JavaScript will convert both of them as String, since string addition or concatination is possible.
- 4 – ‘3’, here since we have one item as string, JavaScript will convert both to Int, since string subtraction is not a valid operation.