---
title: "Discussion on \"Javascript OOP Prototype: Functional or OOP, you use it every day!\" | Hashnode"
description: "Discussion on \"Javascript OOP Prototype: Functional or OOP, you use it every day!\". As you know from  this blog post, classes are just functions in disguise. We used this syntax:\nfunction Animal(rating) {\n    this.rating = rating\n}\n\nAnimal.prototype.run = function() {\n    console.log(\"I run\")\n}\n\nBut why do we use Animal.prototype in..."
url: "https://hashnode.com/posts/javascript-oop-prototype/61dbd567b0c3ca3df9b47b88"
---

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

Discussion

# [Javascript OOP Prototype: Functional or OOP, you use it every day!](https://raghavsinghgulia.hashnode.dev/javascript-oop-prototype?utm_source=hashnode&utm_medium=feed)

As you know from this blog post, classes are just functions in disguise. We used this syntax: function Animal(rating) { this.rating = rating } Animal.prototype.run = function() { console.log("I run") } But why do we use Animal.prototype in...

Jan 10, 2022 · 3 min read · raghavsinghgulia.hashnode.dev  
Read the article

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

## Written by

[Raghav Singh Gulia](https://hashnode.com/@raghavsinghgulia)

@raghavsinghgulia · New Delhi, India

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

I code.

I am a 12 year old student developer from India. I like programming very much.

## Responses 2

Markdown supported · ⌘↵ to post

[Jan Guardian](https://hashnode.com/@jan-staylime)

[Jan 11, 2022](https://hashnode.com/posts/javascript-oop-prototype/61dbd567b0c3ca3df9b47b88/comment/61dd7b1644f1964f4fa7ccf1)

I like it how you call ES6 that appeared in 2015 `The new syntax`

[Raghav Singh Gulia](https://hashnode.com/@raghavsinghgulia)

[Jan 11, 2022](https://hashnode.com/posts/javascript-oop-prototype/61dbd567b0c3ca3df9b47b88/comment/61dd7b1644f1964f4fa7ccf1#reply-61dd7dea6226ab4f74bef46e)

Thanks a lot!! My opinion is that it is important to understand the syntax before ES6 to unlock your full potential.😊😊😊

[Raghuvir S. Gulia](https://hashnode.com/@raghuvir)

[Jan 10, 2022](https://hashnode.com/posts/javascript-oop-prototype/61dbd567b0c3ca3df9b47b88/comment/61dbd856b0c3ca3df9b47c40)

Wow 🤯
