Skip to content

Commit 95a599a

Browse files
.
1 parent 9bd4684 commit 95a599a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

logic/ternary-operators.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const age = 1;
2+
3+
if (age >= 18) {
4+
console.log("You can vote");
5+
} else console.log("you can't vote");

0 commit comments

Comments
 (0)