js string plus number
snippet in javascript

js string plus number

user4822

console.log(10+"1"); //101   both will be string
console.log(10-"1"); //9     string will be taken as number