Answers for "javascript strings vs numbers"

1

javascript strings vs numbers

let message = 'hello'; //string
let sum = 5;           //number
let x = -15.25;        //number
let year = "2021";     //string
Posted by: Guest on May-31-2021
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 "javascript strings vs numbers"

Code answers related to "Javascript"

Browse Popular Code Answers by Language