So, what is Javascript anyway? |
Wait, what's the difference between Java and Javascript? |
So, what CAN I do with Javascript? |
How is it similar to/different from other programming languages? |
For example, Javascript programs are embedded INTO your HTML files. In other words, all of your programming is done right in your HTML source file. Java, on the other hand, requires that you use something called a Compiler to convert your programming code into a separate file. So, Java programs are essentially independent of the HTML file whereas Javascript programs are always run from within a web page and don't need a compiler.
For the more advanced programmers out there, you might also be interested in knowing that variables do not need to be declared in Javascript. If you don't know what a variable is, don't panic! We'll be covering that in the tutorial as well.
Like other langugaes, Javascript is an "object-based" programming language. In other words, Javascript controls your web page by treating elements of the web page as "objects" and uses "functions" to manipulate those objects. For example, your browser window is an object. You can use a Javascript function to print text into that window. Another example of an object would be a form that you have created that contained a text input box. You could use a Javascript function to check and see if the user had entered the right password in the input box.
The primary difference between Javascript and other programming languages is, as mentioned before, variables are global and do not need to be declared. In other words, if you didn't understand that last sentence, NO PROBLEM.
Home | Go to Top | Next Page |