Skip to content

Commit d1a04ac

Browse files
author
Wakidur Rahaman
committed
String Comparison
1 parent e812531 commit d1a04ac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/exercises/string/exercise-01.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,12 @@
1616
'YouTube'.substring(1); // returns 'ouTube'
1717

1818
// 2. String Comparison
19+
const a = 'a';
20+
const b = 'b';
21+
22+
console.log(a < b); // Prints true;
23+
24+
const c = 'add';
25+
const d = 'ab';
26+
27+
console.log(a < b); // Prints 'false'

0 commit comments

Comments
 (0)