Connecting Tech Pros Worldwide Help | Site Map

What is a JavaScript Object?

Newbie
 
Join Date: Oct 2009
Posts: 9
#1: 4 Weeks Ago
What is a JavaScript Object? if there is a such thing help pls.
hsriat's Avatar
Expert
 
Join Date: Jan 2008
Location: Bath, UK
Posts: 1,609
#2: 4 Weeks Ago

re: What is a JavaScript Object?


Quote:

Originally Posted by Yene View Post

What is a JavaScript Object? if there is a such thing help pls.

You mean an instance of a JavaScript class?
Newbie
 
Join Date: Oct 2009
Posts: 9
#3: 4 Weeks Ago

re: What is a JavaScript Object?


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.
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,148
#4: 4 Weeks Ago

re: What is a JavaScript Object?


Wouldn't javascript object be any object in javascript?
Newbie
 
Join Date: Oct 2009
Posts: 9
#5: 4 Weeks Ago

re: What is a JavaScript Object?


Thank you. I think I got my answer. plater
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#6: 4 Weeks Ago

re: What is a JavaScript Object?


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.
Reply