• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

JavaScript Object Based Programming / Object Oriented Programming??

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://java.sun.com/javascript/ajaxinaction/Ajax_in_Action_ApB.html

Eric
 
Prithiraj Sen Gupta
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Prithiraj Sen Gupta
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. And you can also manipulate / run javascript in Java ( javax.script )

RE: server-side javascript:
http://en.wikipedia.org/wiki/Server-side_JavaScript
 
reply
    Bookmark Topic Watch Topic
  • New Topic