---
title: "Discussion on \"Method of primitive\" | Hashnode"
description: "Discussion on \"Method of primitive\". Let’s start with a piece of code:\nconst name = \"aniket\";\nname.toUpperCase(); // ANIKET\n\nThe name is a primitive but we are able to access a method on it as if it were some sort of object. But we know that primitive isn’t an object.What is the story h..."
url: "https://hashnode.com/posts/method-of-primitive-206fbee0c5f/62cd049f2ff140b8fe05c554"
---

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

Discussion

# [Method of primitive](https://aniketjha.dev/method-of-primitive-206fbee0c5f?utm_source=hashnode&utm_medium=feed)

Let’s start with a piece of code: const name = "aniket"; name.toUpperCase(); // ANIKET The name is a primitive but we are able to access a method on it as if it were some sort of object. But we know that primitive isn’t an object.What is the story h...

Jul 12, 2022 · 2 min read · aniketjha.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#datastructure](https://hashnode.com/tag/datastructure)
-   [#objects](https://hashnode.com/tag/objects)

## Written by

[Aniket Jha](https://hashnode.com/@vtechguys)

@vtechguys · Delhi, India

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

Late Night Coder

I’m a software ninja 🥷 who loves abstractions and spread functional programming everywhere. I've over 2 years of experience and I'm based in Delhi, India🇮🇳

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
