Skip to content

Commit 5c0d0c0

Browse files
committed
Changes made
1 parent e4f0805 commit 5c0d0c0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

operators/conversion.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// Converting Integer to String
22
let age = 34;
3-
let age_toString = '' + age;
4-
console.log(age_toString);
3+
let ageToString = '' + age;
4+
console.log(ageToString);
5+
console.log(typeof ageToString);
56

67
// Converting String to Integer
78
let length = '785';
8-
let length_toInt = +length;
9-
console.log(length_toInt);
9+
let lengthToInt = +length;
10+
console.log(lengthToInt);
11+
console.log(typeof lengthToInt);

0 commit comments

Comments
 (0)