The best way to learn JavaScript or any other programming language is to understand its usage and the functionality it offers within said applications. In this case, JS is a web browser language. Specifically, it is a platform independent and client-side language.
This means that a piece of JS code inserted into the HTML source code of a web page is automatically executed by the browser. It does not need to be compiled in order to be executed as a program. If this sounds too geeky or confusing, just ignore it and continue reading.
A static web page built using CSS and HTML can be made interactive using JS. A working knowledge of both HTML and CSS (as in web page design) is a prerequisite for anyone considering wading into JS. No prior programming knowledge is required, though, so this can be a good starting point for new programmers learning their first language.
Another aspect which needs to be cleared up is the difference between Java, JS and jQuery. Both Java and JS are object-oriented programming languages with a somewhat similar structure. However, JS is a lot simpler and works on a very basic level. JQuery is a JavaScript library, and its use will help cut down on the amount of coding required.
There is not much in the form of preparation required for getting started with JS. It does not need a development environment, compiler, debugger, or other standard tools of the programming trade. There is no downloadable software to be installed in order to make this work. The only thing that has to be done is to write the code in a text file. Save the file and open it up in a browser.
Try how it works by copy-pasting a piece of sample code. The syntax is not hard to pick up. First create a script tag (), which tells the browser this is a script and not part of the web page HTML. Add the type attribute to the script tag (type = "text/javascript") so that the browser knows this script is a piece of JS code.
The rest is pure OOP, requiring creation of objects, arrays and variables which are then assigned values and properties. Learn how to use them by setting up a few simple conditional statements and loops. It's hard to go into more detail about the syntax and OOP in this limited space. But there's no question that learning to do all this in JS is much easier than with Java, C or C++.
The next stage after that is to try more complex applications using jQuery and other libraries. These libraries have pre-coded functions that can be called from within the script, thus saving the time and effort required to code all of it from scratch. Anyone who is still reading and understood most of what has been said above should be able to learn JavaScript within a few hours.
This means that a piece of JS code inserted into the HTML source code of a web page is automatically executed by the browser. It does not need to be compiled in order to be executed as a program. If this sounds too geeky or confusing, just ignore it and continue reading.
A static web page built using CSS and HTML can be made interactive using JS. A working knowledge of both HTML and CSS (as in web page design) is a prerequisite for anyone considering wading into JS. No prior programming knowledge is required, though, so this can be a good starting point for new programmers learning their first language.
Another aspect which needs to be cleared up is the difference between Java, JS and jQuery. Both Java and JS are object-oriented programming languages with a somewhat similar structure. However, JS is a lot simpler and works on a very basic level. JQuery is a JavaScript library, and its use will help cut down on the amount of coding required.
There is not much in the form of preparation required for getting started with JS. It does not need a development environment, compiler, debugger, or other standard tools of the programming trade. There is no downloadable software to be installed in order to make this work. The only thing that has to be done is to write the code in a text file. Save the file and open it up in a browser.
Try how it works by copy-pasting a piece of sample code. The syntax is not hard to pick up. First create a script tag (), which tells the browser this is a script and not part of the web page HTML. Add the type attribute to the script tag (type = "text/javascript") so that the browser knows this script is a piece of JS code.
The rest is pure OOP, requiring creation of objects, arrays and variables which are then assigned values and properties. Learn how to use them by setting up a few simple conditional statements and loops. It's hard to go into more detail about the syntax and OOP in this limited space. But there's no question that learning to do all this in JS is much easier than with Java, C or C++.
The next stage after that is to try more complex applications using jQuery and other libraries. These libraries have pre-coded functions that can be called from within the script, thus saving the time and effort required to code all of it from scratch. Anyone who is still reading and understood most of what has been said above should be able to learn JavaScript within a few hours.
About the Author:
If you would like to learn javascript, check out our website at www.trainsimple.com for more info. To find out about the IT services we provide visit us online at http://www.trainsimple.com now.



0 comments:
Post a Comment