This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaScript Object Based Programming / Object Oriented Programming??

 
Prithiraj Sen Gupta
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • 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).
 
Eric Pascarello
author
Rancher
Posts: 15385
6
 
Prithiraj Sen Gupta
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
Roger F. Gay
Ranch Hand
Posts: 408
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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: 408
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic