JavaScript Programs

  1. HelloWorld1.htmlHelloWorld2.html
  2. HelloWorld2b.htmlHelloWorld2c.html HelloWorld2d.html
    The traditional way to start programming.
  3. functions1.html, TestBrowser.html, TestBrowserWithComments.html, TestBrowserWithComments2.html
    <script language="javascript">
    hiding JavaScript from old browsers inside comments
    function notation and parameters
    alert( )
  4. functions2a1.html , functions2a2.html , functions2a3.html , makeChange.html LearnColors.html
    variables - defining and changing their values and types
    returning a value from a function
    prompt( ) and parseInt( )
    concatenation vs. addition - overloading of operators
    document.write( ) 
  5. doc_write.html, doc_write_revisted.html
    including HTML tags, single and double quotes
    including images 
    document.write(string1,string2) etc. form

    multiple document.writes vs. assembling one long string
  6. arith_funtions1.html, arith_functions_2.html
    functions for adding, multiplying etc. one and two variables
  7. CoerceTypes.html, TypeConversion_properlyDone.html
    stings and numbers (integer, float) and + operator
    how to convert between strings and numbers
  8. GlobalChange, moreGlobalChange
    Scope_of_Vars
    Spooky,Spooky2,Spooky3,Spooky4
    local and global variables
  9. miniTable.html
    how to write out a table in document.write( )
  10. rounding.html
    how to get floating point numbers rounded and
    how to print out to a certain number of decimal places