showing results for - "javascript strings vs numbers"
Esmeralda
31 Jan 2018
1let message = 'hello'; //string
2let sum = 5;           //number
3let x = -15.25;        //number
4let year = "2021";     //string
Iker
07 Aug 2016
1let x = 2;       // number
2let y = '2';     // string
3
4console.log(x + x); // 4
5console.log(x + y); // 22