Skip to content

Commit 84fa2bd

Browse files
feat(topic-1): type coercion
1 parent 7d762c2 commit 84fa2bd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Topic1/03-type-coercion.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
let a = 10;
2+
let b = 20;
3+
4+
console.log("sum of 10 and 20 is " + (a + b));
5+
console.log(a + b + " is sum of 10 and 20");
6+
7+
console.log("1" - 1);
8+
console.log("1" * 1);
9+
console.log("1" / 1);

0 commit comments

Comments
 (0)