---
title: "Discussion on \"What the heck is the .localeCompare() method in JavaScript?\" | Hashnode"
description: "Discussion on \"What the heck is the .localeCompare() method in JavaScript?\". The .localeCompare() method proves to be useful for comparing strings in JavaScript."
url: "https://hashnode.com/posts/localecompare-javascript/61e814c76f4d6f431978da1e"
---

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

Discussion

# [What the heck is the .localeCompare() method in JavaScript?](https://geraldiner.hashnode.dev/localecompare-javascript?utm_source=hashnode&utm_medium=feed)

The .localeCompare() method proves to be useful for comparing strings in JavaScript.

Jan 19, 2022 · 4 min read · geraldiner.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#basics](https://hashnode.com/tag/basics)
-   [#js](https://hashnode.com/tag/js)

## Written by

[Geraldine](https://hashnode.com/@geraldiner)

@geraldiner

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

think with the kokoro 💖 not the boto 🍆

Using my knowledge and experience to do what I do best: bring joy to people’s lives 😊 💖

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
