1. Home >
  2. Computers & Internet >
  3. Programming & Design >
  4. Resolved Question
phani phani
Member since:
January 02, 2008
Total points:
120 (Level 1)

Resolved Question

Show me another »

What is javascript called? is it Object based programming language or Object Oriented Programming Language?

Hi friends, I have lot of confusion in about this Question...
Please forward a current answer if you know currectly..
Thanks...
  • 2 years ago
richarduie by richardu...
Member since:
August 13, 2007
Total points:
14516 (Level 6)

Best Answer - Chosen by Voters

JavaScript is most certainly an OO language. There are two models of OO. One is based on classes as the templates from which to create objects (instances of classes), and the other relies on prototypes that are already objects and which can be cloned to create new instances. JavaScript (and others) takes the prototype approach.

Source(s):

  • 2 years ago
100% 1 Vote

There are currently no comments for this question.

Other Answers (7)

  • Spearfish by Spearfis...
    Member since:
    August 20, 2006
    Total points:
    7767 (Level 5)
    Well I would call it a browser scripting language.

    While it's possible to make a JavaScript without objects, it won't be a very good one, so I'd say object based, if I had to choose.
    • 2 years ago
    0% 0 Votes
  • Samwise by Samwise
    A Top Contributor is someone who is knowledgeable in a particular category.
    Member since:
    November 01, 2007
    Total points:
    22638 (Level 6)
    Badge Image:
    A Top Contributor is someone who is knowledgeable in a particular category.
    Contributing In:
    Mathematics
    "Object oriented" is the classic academic jargon. I wouldn't be surprised if "object-based" is a common alternative.
    • 2 years ago
    0% 0 Votes
  • omouse by omouse
    Member since:
    December 21, 2007
    Total points:
    713 (Level 2)
    (Seriously, let's use the proper terminology!)

    JavaScript, "is a dynamic, weakly typed, prototype-based language with first-class functions."

    Prototype-based is what you are called object-based and Wikipedia says,
    "Prototype-based programming is a style of object-oriented programming in which *classes are not present*, and behavior reuse (known as inheritance in class-based languages) is performed via a process of cloning existing objects that serve as prototypes. This model can also be known as class-less, prototype-oriented or instance-based programming."

    Source(s):

    Wikipedia: JavaScript - http://en.wikipedia.org/wiki/JavaScript

    Wikipedia: Prototype-based programming - http://en.wikipedia.org/wiki/Prototype-b…
    • 2 years ago
    0% 0 Votes
  • C C by C C
    Member since:
    June 12, 2007
    Total points:
    2056 (Level 3)
    I don't quite follow you.

    Javascript is a script usually written to execute things on websites, and can be developed by the Java programming language. The second question is a bit ambigious- you can program in Java without specific use of objects, but you can also conduct object oriented programming. I would say to answer your question, yes an Object Oriented Programming Language.

    However, Javascript is object-based as the above poster stated.

    Source(s):

    Computer Science / Engineer Major
    • 2 years ago
    0% 0 Votes
  • Maniaca Esoterica by Maniaca Esoterica
    Member since:
    February 10, 2007
    Total points:
    1380 (Level 3)
    Object based as it does not provide true OOP.

    An Object Based programming language typically provides the concept of an object or uses object concepts in some way but does not support some important facet of OOP like inheritance or polymorphisim (E.G. Most of the Microsoft Office applications up to 2003 at least)

    Object oriented programming languages supports all of the important facets of object oriented programming. I'm not going to debate exactly what they are as I'll start a holy war, but as a starting point it should support at least inheritance and polymorphisim.

    So yes, there IS an important difference between an Object Oriented language and an Object Based language and it isnt always easy to tell the difference at first.
    • 2 years ago
    0% 0 Votes
  • Doug by Doug
    Member since:
    January 02, 2008
    Total points:
    5745 (Level 5)
    Java script is object-based, but not a true OOP. It objects are not instances any class.
    • 2 years ago
    0% 0 Votes
  • rwid by rwid
    Member since:
    February 08, 2008
    Total points:
    5077 (Level 5)
    object-based since it relies on the DOM and supports the use of objects but doesn't adhere to the definition of an object-oriented language

    Source(s):

    • 2 years ago
    0% 0 Votes

Answers International

Yahoo! does not evaluate or guarantee the accuracy of any Yahoo! Answers content. Click here for the Full Disclaimer.

Help us improve Yahoo! Answers. Send Feedback