---
title: "Discussion on \"JavaScript Strings Comparison\" | Hashnode"
description: "Discussion on \"JavaScript Strings Comparison\". String Comparison\nTo check whether a string is greater than another, dictionary or lexicographical ordering is used.\n\nLexicographical ordering is when strings are compared letter-by-letter.\n\nSee the example below:\nconsole.log( 'Z' > 'A' ); // true\nco..."
url: "https://hashnode.com/posts/javascript-strings-comparison/6037f768e2f3b459e4e5f1c8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript Strings Comparison](https://techstack.hashnode.dev/javascript-strings-comparison?utm_source=hashnode&utm_medium=feed)

String Comparison To check whether a string is greater than another, dictionary or lexicographical ordering is used. Lexicographical ordering is when strings are compared letter-by-letter. See the example below: console.log( 'Z' > 'A' ); // true co...

Feb 25, 2021 · 2 min read · techstack.hashnode.dev  
Updated Jun 24, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#learn-coding](https://hashnode.com/tag/learn-coding)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)

## Written by

[Bello](https://hashnode.com/@techstack)

@techstack · Nigeria

  
[View profile](https://hashnode.com/@techstack)

web developer

Web technology related ➡️ blogger || video creator || author || online instructor || YouTuber || web developer || freelancer

## Responses 1

Markdown supported · ⌘↵ to post

[Laszlo Tatai](https://hashnode.com/@LaszloTatai)

[Feb 26, 2021](https://hashnode.com/posts/javascript-strings-comparison/6037f768e2f3b459e4e5f1c8/comment/60388609e2f3b459e4e5f915)

Thank U Brotha!

[Bello](https://hashnode.com/@techstack)

[Feb 26, 2021](https://hashnode.com/posts/javascript-strings-comparison/6037f768e2f3b459e4e5f1c8/comment/60388609e2f3b459e4e5f915#reply-6038d447e2f3b459e4e601bc)

I am happy you like it
