What is a JavaScript Object?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yene
    New Member
    • Oct 2009
    • 13

    What is a JavaScript Object?

    What is a JavaScript Object? if there is a such thing help pls.
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Originally posted by Yene
    What is a JavaScript Object? if there is a such thing help pls.
    You mean an instance of a JavaScript class?

    Comment

    • Yene
      New Member
      • Oct 2009
      • 13

      #3
      hriat
      Am confused too, I know object is an instance of a class, but what I don’t get is, I have been asked by my tutor such a question. And I don’t think there is such thing as Javascript object or Java object or am I looking at this the wrong way around.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Wouldn't javascript object be any object in javascript?

        Comment

        • Yene
          New Member
          • Oct 2009
          • 13

          #5
          Thank you. I think I got my answer. plater

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            just for completion. Javascript does not use the concept of classes. Javascript is a prototype based language (see also here) i.e. it clones existing objects rather than creating new ones.

            you can call the function that is used to build the object a class, although it is not a class in the class-ical meaning.

            Comment

            Working...