Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 42677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:22:32+00:00 2026-05-10T15:22:32+00:00

There have been some questions about whether or not JavaScript is an object-oriented language.

  • 0

There have been some questions about whether or not JavaScript is an object-oriented language. Even a statement, ‘just because a language has objects doesn’t make it OO.’

Is JavaScript an object-oriented language?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:22:32+00:00Added an answer on May 10, 2026 at 3:22 pm

    IMO (and it is only an opinion) the key characteristic of an object orientated language would be that it would support polymorphism. Pretty much all dynamic languages do that.

    The next characteristic would be encapsulation and that is pretty easy to do in Javascript also.

    However in the minds of many it is inheritance (specifically implementation inheritance) which would tip the balance as to whether a language qualifies to be called object oriented.

    Javascript does provide a fairly easy means to inherit implementation via prototyping but this is at the expense of encapsulation.

    So if your criteria for object orientation is the classic threesome of polymorphism, encapsulation and inheritance then Javascript doesn’t pass.

    Edit: The supplementary question is raised ‘how does prototypal inheritance sacrifice encapsulation?’ Consider this example of a non-prototypal approach:-

    function MyClass() {     var _value = 1;     this.getValue = function() { return _value; } } 

    The _value attribute is encapsulated, it cannot be modified directly by external code. We might add a mutator to the class to modify it in a way entirely controlled by code that is part of the class. Now consider a prototypal approach to the same class:-

    function MyClass() {   var _value = 1; } MyClass.prototype.getValue = function() { return _value; } 

    Well this is broken. Since the function assigned to getValue is no longer in scope with _value it can’t access it. We would need to promote _value to an attribute of this but that would make it accessable outside of the control of code written for the class, hence encapsulation is broken.

    Despite this my vote still remains that Javascript is object oriented. Why? Because given an OOD I can implement it in Javascript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 115k
  • Answers 115k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Note: This answer is for education purposes - better to… May 11, 2026 at 10:24 pm
  • Editorial Team
    Editorial Team added an answer Unfortunately, mysql doesn't let functions return arrays or tables (that… May 11, 2026 at 10:24 pm
  • Editorial Team
    Editorial Team added an answer If the database has the default collation settings then 'blah'… May 11, 2026 at 10:24 pm

Related Questions

At my company we're starting to branch into web APIs to access and update
I am working on an application which accepts any uploaded CSV data, stores it
I have been hearing and reading about Agile for years. I own a book
I've been discussing a code style issue with a friend. We have a series

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.