Skip to content

Commit 35e6f2d

Browse files
committed
Solution added
1 parent ef5dd04 commit 35e6f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

explicit-and-implicit-conversion-in-javascript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ console.log("Total Age: " + totalAge) // Total Age: 30
5555

5656
// Implicit Conversion Example:
5757

58-
let implResult = "10" * 2; // The multiplication operator "*" forces the string "10" to be converted to a number.
59-
console.log("After implicit conversion: " + implResult); // 20
58+
let implConvr = "10" * 2; // The multiplication operator "*" forces the string "10" to be converted to a number.
59+
console.log("After implicit conversion: " + implConvr); // 20
6060

6161
// Explicit Conversion Example:
6262
let NumberString = "123"; // valid number string

0 commit comments

Comments
 (0)