• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java vs. Javascript

 
J. Moritz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If one knows Java does one inherently Java Script?
 
J. Moritz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me rephrase that....

I am learning Java ....is 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
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...

thanks
daniel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic