wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes JavaScript Object Based Programming / Object Oriented Programming?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JavaScript Object Based Programming / Object Oriented Programming??" Watch "JavaScript Object Based Programming / Object Oriented Programming??" New topic
Author

JavaScript Object Based Programming / Object Oriented Programming??

Prithiraj Sen Gupta
Ranch Hand

Joined: Sep 13, 2006
Posts: 92
Can anybody Tell me is JavaScript Object Oriented Programming or Object Based Programming??

JavaScript doesnt have Classes but it supports Inheritance(A great feature of object oriented property).
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
http://java.sun.com/javascript/ajaxinaction/Ajax_in_Action_ApB.html

Eric
Prithiraj Sen Gupta
Ranch Hand

Joined: Sep 13, 2006
Posts: 92
Hi,
Thanks For providing me the Link. WE wont get any thing on fighting over declaring JavaScript a Object Oriented or Object Based Programming. It has some features of OOps but It is not fully OOps(Some thing in the Middle) as Java.

Okay can you tell me whether we can use javascript as server side language.??? I have seen a topic written as Server Side JavaScript. If it does work as a server side can it directly handle database queries?

Thanks & Regards

Prithiraj Sen Gupta
[ April 20, 2007: Message edited by: Prithiraj Sen Gupta ]
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 349
Perhaps the following link provides a little more detailed break-down of the issue. The author classifies javascript as object-based because its objects are based on prototypes.

http://en.wikipedia.org/wiki/Object-based_programming

But that doesn't mean that it isn't an object oriented programming language:

http://en.wikipedia.org/wiki/Object-oriented_programming

... just that it doesn't have ALL the characteristics related to the definition of OOP.
[ April 21, 2007: Message edited by: Roger F. Gay ]

Correlation does not prove causality.
Prithiraj Sen Gupta
Ranch Hand

Joined: Sep 13, 2006
Posts: 92
Can you tell me whether we can use javascript as server side language.??? I have seen a topic written as Server Side JavaScript. If it does work as a server side can it directly handle database queries?


Thanks & Regards

Prithiraj Sen Gupta
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 349
Yes. And you can also manipulate / run javascript in Java ( javax.script )

RE: server-side javascript:
http://en.wikipedia.org/wiki/Server-side_JavaScript
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaScript Object Based Programming / Object Oriented Programming??
 
Similar Threads
[JS] is this the new way of defining function?
JavaScript an OOP language?
OO Basics
Object Oriented and Object based
Exact Difference between c and java