Answers for "js string vs number difference"

1

js string vs number difference

let x = 2;       // number
let y = '2';     // string

console.log(x + x); // 4
console.log(x + y); // 22
Posted by: Guest on May-31-2021

Code answers related to "js string vs number difference"

Code answers related to "Javascript"

Browse Popular Code Answers by Language