SEBESTA WWW Source Code Listings
| Chapter 2 | Chapter 3 | Chapter 4 | Chapter 5 | Chapter 6 | Chapter 7 |
Chapter 4
- Compute the real roots of a given quadratic equation. If the roots are
imaginary, this script displays NaN, because that is what results from
taking the square root of a negative number, roots.html
- An example of a switch statement for table border size selection, borders2.html
- Illustrates the use of the Date object by displaying the parts of a
current date and using two Date objects to time a calculation, date.html
- The script in this document has an array of names, name_list, whose
values are in alphabetic order. New names are input through prompt.
Each new name is inserted into the name array, after which the new list is
displayed, insert_names.html
- An example illustrate an array of arrays, nested_arrays.html
- The params function and a test driver for it. This example illustrates function parameters, parameters.html
- A function and a function tester Illustrates array operations, medians.html
- A function tst_phone_num is defined and tested. This function checks the validity of phone
number input from a form, forms_check.html
- An example to illustrate debugging help, debugdemo.html