rhsquad wrote:
Can someone explain to me what javascript is used for? Is it and Java similar in any way? I see this more and more on application recommendations and was wondering about it.
Thanks,
breezy.
They're not even related. Java was developed by Sun Micro Systems back in the mid-to-late nineties. Javascript was developed by Netscape. The two share a name but they're nowhere near related to each other.
Java is a fully object-oriented, statically typed, 3G (3rd generation) language. It is heavily influenced by K&R's C language. It runs on any machine through the JVM (Java Virtual Machine). Java is a true Enterprise language in that it contains libraries for enterprise development.
Javascript is actually misleading. It's not Java, it is a script.

Javascript was developed by Netscape to provide interactivity within a web site. Javascript's initial environment was the browser. It only ran on the browser. Some say it's object-oriented, but it's really not. Javascript is interpreted, does not use a VM, and is dynamically typed. It's also based on a prototypical language like Io. Lately, however, Javascript is being used for things like web servers. Node.js is a fine example of that.
They also have two completely different uses. You can build an entire application using Java. It has its own UI library, a database library (for connecting to databases) and libraries that speed up enterprise grade applications. Javascript is a tool used to manipulate HTML objects in a browser. Its scope is limited to DOM manipulation and AJAX.
Hopefully this answers your question.