• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter SATURDAY MORNING. Learning the B... > A Few Words about Scripting

A Few Words about Scripting

Perhaps you are wondering what the difference is between scripting and programming. The answer is nothing. They are the same thing. Many people like to think of scripts as small units of program code that perform a specific function and of programs as larger, more robust code. As you will soon learn, scripts can be written that fulfill both of these definitions.

One possible way to differentiate a script from a program is to define scripts as interpreted programs that are processed one line at a time and to define programs as collections of code that must be compiled before they can execute. Compiling is the process of converting a program’s instructions into machine language so that the computer can process them. Because JavaScript and JScript are interpreted languages, they need something to interpret the code as they execute. This is the job of the Internet browser and the WSH, which also provide scripts with a programming environment complete with environment-specific object models that provide JavaScripts with access to resources such as windows and browser history information and provide JScript with access to files, folders, drives, and so on.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint