[ LiB ] |
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 www.shareware.com, www.download.com, 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 ] |