What is JavaScript?
So what exactly is JavaScript? Well, it's is a scripting language
developed by Netscape to add interactivity and power to web documents.
Examples of JavaScript include live clocks, rollover effects, scrollers,
form validations, and so on. JavaScript differs from most other
programming languages in that it is relatively easy to master, even for
people who have absolutely no programming experiences whatsoever.
Why learn JavaScript?
The first few words that come to mind are: "Freedom baby, freedom!" With
html, you are restricted to creating static, non interactive webpages.
This, in today's internet standards, is unacceptable. With JavaScript,
you can change that. Imagine being able to break free and allow your
creativity to dictate what you put on your webpage, instead of the other
way round. And the best part is, JavaScript can be learned by
anyone-yes, I said anyone!
What's the difference between Java and JavaScript?
Java is completely different from JavaScript-It's a lot more powerful,
more complex, and unfortunately, a lot harder to master. It belongs in
the same league as C, C++, and other more complex languages. Also, you
need to compile a Java program before you can run it, whereas with
JavaScript, no compilation is needed-simply open up a text editor, type
it, save it, and your browser is ready to run it!
Can my JavaScript programs run on both Netscape and Internet
Explorer browsers?
Unfortunately, not necessarily. JavaScript was created by
Netscape, so it is most compatible with Netscape. Internet Explorer 4.x
supports 99% of what JavaScript has to offer, although IE 3.x is not
quite as adorable. A good rule to follow is to always test your codes
using both browsers before uploading it onto the internet. You will be
surprised how many websites fail to do this, annoying surfers and not
even realizing that their scripts are going haywire behind their backs!
(this might pertain to me too)
|