This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java vs. Javascript 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 » Java » Beginning Java
Bookmark "Java vs. Javascript" Watch "Java vs. Javascript" New topic

Java vs. Javascript

J. Moritz

Joined: Oct 20, 2004
Posts: 5
If one knows Java does one inherently Java Script?
J. Moritz

Joined: Oct 20, 2004
Posts: 5
Let me rephrase that....

I am learning Java it necessary to learn Java Script or will I inherently know JS by learning Java? ...Is JS a subset of Java?
Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
Hi Moritz,
JavaScript is not a subset of Java.
It is different with Java although some its keywords are same with Java's keywords.
You usually use JavaScript for developing web application.
JavaScript is used to validate the user's entry before its value send to the server.

Imagine that you have a screen about Registration. You have to fill birth date on that. Before your birth date is sent to server, you have JavaScript's function to validate whether your input is in correct format of date or not. If you enter invalid date format, its function will alert you and not send your input to server.

Hope this help.. and correct me if I am wrong...

It is sorta covered in the JavaRanch Style Guide.
subject: Java vs. Javascript
Similar Threads
how to store details from file in an object
Starting background process
an easy js math question
Help with graphics