<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-is-proto-in-javascript--emzjamic2" -->

---
title: What is __proto__ in JavaScript? | daily.dev
description: Every single javascript object created, automatically comes with a __proto__ property. By giving assigning a new function sayHi to Object.prototype , every...
canonical: https://daily.dev/posts/what-is-proto-in-javascript--emzjamic2
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What is __proto__ in JavaScript? | daily.dev
og:description: Every single javascript object created, automatically comes with a __proto__ property. By giving assigning a new function sayHi to Object.prototype , every...
og:url: https://daily.dev/posts/what-is-proto-in-javascript--emzjamic2
og:image: https://api.daily.dev/og/posts/eMZjAMIC2.png
og:image:alt: What is __proto__ in JavaScript?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What is __proto__ in JavaScript?

**[JavaScript in Plain English](https://daily.dev/sources/jsPlainEnglish)** · 5 min read · 60 upvotes · 5 comments

## Summary

Every single javascript object created, automatically comes with a __proto__ property. By giving assigning a new function sayHi to Object.prototype , every subsequent object that is created will automatically have that function. The usefulness is entirely up to you to decide. But before you go ahead and make use of __ proto__ in your production apps, do note that it has since been deprecated.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/javascript-in-plain-english/what-is-proto-b15f16e10b72>

## Community discussion

Top comments from developers on daily.dev.

**@ghost** · 2 upvotes

> Nice explanation of what seems to be "from where did you come proto".

**@lucini** · 1 upvotes

> thanks for the info

**@fahad07khan** · 1 upvotes

> I have read about proto in javaScript, basically, it helps to reuse `custom made` functionality anywhere inside the JS code. pretty helpful!

**@joseyanez** · 0 upvotes

> thanks for the info!!!

**@garvnanwani** · 0 upvotes

> Nicely explained

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/what-is-proto-in-javascript--emzjamic2)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"What is __proto__ in JavaScript?","url":"https://daily.dev/posts/what-is-proto-in-javascript--emzjamic2","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-is-proto-in-javascript--emzjamic2"},"datePublished":"2021-01-08T07:12:58.596Z","dateModified":"2021-10-07T14:17:10.317Z","description":"Every single javascript object created, automatically comes with a __proto__ property. By giving assigning a new function sayHi to Object.prototype , every...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e5eca8a2088e53742ec5ed81acf98c26","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e5eca8a2088e53742ec5ed81acf98c26","isAccessibleForFree":true,"articleSection":"JavaScript in Plain English","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"JavaScript in Plain English","logo":"https://media.daily.dev/image/upload/s--Dg5QTRuI--/f_auto,q_auto/v1686665538/logos/pe","url":"https://daily.dev/sources/jsPlainEnglish"},"commentCount":5,"discussionUrl":"https://daily.dev/posts/what-is-proto-in-javascript--emzjamic2","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":60},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":5}],"keywords":"javascript","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"JavaScript in Plain English","item":"https://daily.dev/sources/jsPlainEnglish"},{"@type":"ListItem","position":3,"name":"What is __proto__ in JavaScript?"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/what-is-proto-in-javascript--emzjamic2","comment":[{"@type":"Comment","text":"Nice explanation of what seems to be “from where did you come proto”.","datePublished":"2021-01-08T12:36:32.024Z","url":"https://daily.dev/posts/eMZjAMIC2#c-sxm-RppoH","author":{"@type":"Person","name":"Deleted user","url":"https://daily.dev/ghost","image":"https://media.daily.dev/image/upload/s--hNIUzLiO--/f_auto/v1705327420/public/ghost_vlftth"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"thanks for the info","datePublished":"2021-01-08T11:12:47.830Z","url":"https://daily.dev/posts/eMZjAMIC2#c-c4KSPzz6C","author":{"@type":"Person","name":"Rafael Lucini","url":"https://daily.dev/lucini","image":"https://avatars1.githubusercontent.com/u/24793959?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"I have read about proto in javaScript, basically, it helps to reuse custom made functionality anywhere inside the JS code. pretty helpful!","datePublished":"2021-01-08T17:29:34.144Z","url":"https://daily.dev/posts/eMZjAMIC2#c-5Gbg3AN_m","author":{"@type":"Person","name":"Fahad Khan","url":"https://daily.dev/fahad07khan","image":"https://avatars0.githubusercontent.com/u/63319486?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"thanks for the info!!!","datePublished":"2021-01-08T17:30:59.028Z","url":"https://daily.dev/posts/eMZjAMIC2#c-cvNWueR6n","author":{"@type":"Person","name":"José Manuel Yáñez","url":"https://daily.dev/joseyanez","image":"https://avatars2.githubusercontent.com/u/29357099?v=4"}},{"@type":"Comment","text":"Nicely explained","datePublished":"2021-01-08T18:28:18.953Z","url":"https://daily.dev/posts/eMZjAMIC2#c-09FWFIfBO","author":{"@type":"Person","name":"Garv nanwani","url":"https://daily.dev/garvnanwani","image":"https://avatars3.githubusercontent.com/u/36405030?v=4"}}]}
```

