---
title: "Discussion on \"Ownership: The \"Relay Race\" of Memory\" | Hashnode"
description: "Discussion on \"Ownership: The \"Relay Race\" of Memory\". In JavaScript, you don't worry about memory because the Garbage Collector cleans it up for you like a background janitor. In Rust, Ownership takes its place.\nThink of your data as a Baton in a relay race. Rust's main goal is to ensure that only one r..."
url: "https://hashnode.com/posts/ownership-the-relay-race-of-memory/69d4dfea4650dac7a91de3af"
---

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

Discussion

# [Ownership: The "Relay Race" of Memory](https://yafi.hashnode.dev/ownership-the-relay-race-of-memory?utm_source=hashnode&utm_medium=feed)

In JavaScript, you don't worry about memory because the Garbage Collector cleans it up for you like a background janitor. In Rust, Ownership takes its place. Think of your data as a Baton in a relay race. Rust's main goal is to ensure that only one r...

Apr 7 · 3 min read · yafi.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#ownership](https://hashnode.com/tag/ownership)
-   [#move-semantics](https://hashnode.com/tag/move-semantics)
-   [#borrowing](https://hashnode.com/tag/borrowing)
-   [#frontend](https://hashnode.com/tag/frontend)

## Written by

[Muhammad Yafi Alhakim](https://hashnode.com/@yafialhakim)

@yafialhakim · Jakarta, Indonesia

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

Frontend Engineer @MySkill.id

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
