Chapter SATURDAY MORNING. Learning the Basics of JavaScript Coding

[ LiB ]

Chapter SATURDAY MORNING. Learning the Basics of JavaScript Coding

  • A few words about scripting

  • Working with values

  • Working with JavaScript statements

  • Streamlining your JavaScripts with functions

  • Using arrays

  • Using built-in JavaScript objects

Good morning! I hope you had a good night's sleep and that you are rested and ready to go. There is a lot for you to do today.

Yesterday, I focused on providing you with the background that you need to get started working with both JavaScript and JScript. Today you will begin to learn about the programming statements that make up these two languages. To keep things as simple as possible and because the focus of the first half of this book is on JavaScript, I will present everything in this chapter using JavaScript examples. However, as you will see on Sunday, just about everything that you learn in this chapter can be applied to JScript.

If you have not already done so, now is a good time to pull together all the tools you plan to work with. While you can certainly use Window's Notepad application to write all your scripts, you also might want to download a more advanced script editor from the Internet. Its also a good idea to download copies of Internet browsers such as Netscape, Internet Explorer, and Opera. In addition, you might also want to check out the various shareware sites such as,, and www. tucows .com for other alternatives.

Assuming that you have everything you need, let's review what I have planned for this morning and then jump right in. You will start out by learning the basic programming statements available to you in JavaScript and JScript. These statements enable you to do such things as storing information for later use, comparing values, and developing logical routines to handle different circumstances. You'll also learn to streamline your script using loops , functions, and arrays. Finally, I'll go over built-in JavaScript and JScript objects, explaining what they are and how to use them.

[ LiB ]

Learn JavaScript In a Weekend
Learn JavaScript In a Weekend, Second Edition
ISBN: 159200086X
EAN: 2147483647
Year: 2003
Pages: 84 © 2008-2017.
If you may any questions please contact us: