Home | | Internet & World Wide Web HOW TO PROGRAM | | Internet Programming | | Web Programming | Pseudocode - JavaScript(JS) Control Statements

Chapter: Internet & World Wide Web HOW TO PROGRAM - The Ajax Client - JavaScript: Control Statements I

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail

Pseudocode - JavaScript(JS) Control Statements

Pseudocode is an artificial and informal language that helps programmers develop algorithms.

Pseudocode

 

Pseudocode is an artificial and informal language that helps programmers develop algorithms. The pseudocode we present here is useful for developing algorithms that will be converted to structured portions of JavaScript programs. Pseudocode is similar to everyday English; it is convenient and user friendly, although it is not an actual computer program-ming language.

The style of pseudocode we present consists purely of characters, so that programmers may conveniently type pseudocode in an editor program. The computer can produce a fresh printed copy of a pseudocode program on demand. Carefully prepared pseudocode may easily be converted to a corresponding JavaScript program. This process is done in many cases simply by replacing pseudocode statements with their JavaScript equivalents. In this chapter, we give several examples of pseudocode.

 

Pseudocode normally describes only executable statements—the actions that are per-formed when the program is converted from pseudocode to JavaScript and is run. Decla-rations are not executable statements. For example, the declaration

 

var value1;

 

instructs the JavaScript interpreter to reserve space in memory for the variable value1. This declaration does not cause any action—such as input, output or a calculation—to oc-cur when the script executes. Some programmers choose to list variables and mention the purpose of each variable at the beginning of a pseudocode program.

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail


Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.