0
console.log("2"+2) //22
console.log("2"-2) //0
console.log("2"*2) //4
console.log("2"/2) //1
console.log("2"%2) //0

Why only arthemitic operation consider it as string but not other operators in javascript?

SameerShaik
  • 480
  • 1
  • 8
  • 22

0 Answers0