Saturday, April 30, 2011

JavaScript Summary - XXII


Pat yourself on the back - you've made it to the end of this tutorial!
This tutorial has demonstrated what JavaScript is and how it works. We started with the basics - like how to turn JavaScript on and off in your browser. We then quickly moved on to the basic syntax of JavaScript. We learned that you can include JavaScript within your HTML page, or you can place it in an external file - the choice is yours.
We learned about some of the key concepts of JavaScript and that these concepts are pretty standard across most programming/scripting languages - concepts such as operatorsvariables and functions. We learned that intrinsic events enable you run a script in response to a user's action.
We covered some more of the standard programming concepts such as if statements, switch statements and loops.
We learned how to catch an error and present a friendly message back to the user (so as to not scare them off).
Among the advanced topics were cookies, which enable us to "remember" a user by writing and reading a file on their hard drive. We learned how to present the date and time in a nice format, then finished off with arrays - another standard programming concept.

What Next?

If you think JavaScript is your thing, try checking out some of the code snippets here on Quackit such as Image Rollovers orDropdown Menu. There are also JavaScript references such as Reserved Words or Date and Time Functions.

No comments:

Post a Comment