---
title: "Discussion on \"Don't add or change methods in built-in JavaScript objects\" | Hashnode"
description: "Discussion on \"Don't add or change methods in built-in JavaScript objects\". It is possible to add and modify properties and methods to JavaScript classes and prototypes using the prototype property of the class or constructor function.\nclass Dog {\n    bark() {\n        return \"Woof!\";\n    }\n}\n\n// Add a new method to the Dog c..."
url: "https://hashnode.com/posts/dont-add-or-change-methods-in-built-in-javascript-objects/63e3cbeb34845a8ca54de897"
---

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

Discussion

# [Don't add or change methods in built-in JavaScript objects](https://nicozerpa.hashnode.dev/dont-add-or-change-methods-in-built-in-javascript-objects?utm_source=hashnode&utm_medium=feed)

It is possible to add and modify properties and methods to JavaScript classes and prototypes using the prototype property of the class or constructor function. class Dog { bark() { return "Woof!"; } } // Add a new method to the Dog c...

Feb 8, 2023 · 2 min read · nicozerpa.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Nico Zerpa](https://hashnode.com/@awaitnico)

@awaitnico

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

JS Dev

JavaScript developer who wants to help

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
