---
title: "Discussion on \"What is \"Symbol.for\" in JavaScript?\" | Hashnode"
description: "Discussion on \"What is \"Symbol.for\" in JavaScript?\". Symbol.for is a built-in method of Symbol's in JavaScript. What is it for and what is the difference between Symbol and Symbol.for?\nSymbol.for\nLike Symbol, Symbol.for always returns a Symbol for a given key as well. What is unlike Symbol is Symbol.fo..."
url: "https://hashnode.com/posts/what-is-symbolfor-in-javascript/62e8cd583f084d032011c4c7"
---

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

Discussion

# [What is "Symbol.for" in JavaScript?](https://augustine.hashnode.dev/what-is-symbolfor-in-javascript?utm_source=hashnode&utm_medium=feed)

Symbol.for is a built-in method of Symbol's in JavaScript. What is it for and what is the difference between Symbol and Symbol.for? Symbol.for Like Symbol, Symbol.for always returns a Symbol for a given key as well. What is unlike Symbol is Symbol.fo...

Aug 2, 2022 · 2 min read · augustine.hashnode.dev  
Updated Aug 20, 2022  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Augustine Wen](https://hashnode.com/@Augustine)

@Augustine

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

Fullstack engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
