SEBESTA WWW Source Code Listings

| Chapter 2 | Chapter 3 | Chapter 4 | Chapter 5 | Chapter 6 | Chapter 7 |

Chapter 4

  1. 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
  2. An example of a switch statement for table border size selection, borders2.html
  3. 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
  4. 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
  5. An example illustrate an array of arrays, nested_arrays.html
  6. The params function and a test driver for it. This example illustrates function parameters, parameters.html
  7. A function and a function tester Illustrates array operations, medians.html
  8. A function tst_phone_num is defined and tested. This function checks the validity of phone number input from a form, forms_check.html
  9. An example to illustrate debugging help, debugdemo.html