We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4f0805 commit 5c0d0c0Copy full SHA for 5c0d0c0
operators/conversion.js
@@ -1,9 +1,11 @@
1
// Converting Integer to String
2
let age = 34;
3
-let age_toString = '' + age;
4
-console.log(age_toString);
+let ageToString = '' + age;
+console.log(ageToString);
5
+console.log(typeof ageToString);
6
7
// Converting String to Integer
8
let length = '785';
-let length_toInt = +length;
9
-console.log(length_toInt);
+let lengthToInt = +length;
10
+console.log(lengthToInt);
11
+console.log(typeof lengthToInt);
0 commit comments