JavaScript Chapter

Card Set Information

Author:
jlm158
ID:
170951
Filename:
JavaScript Chapter
Updated:
2012-09-14 22:50:05
Tags:
java
Folders:

Description:
jave
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user jlm158 on FreezingBlue Flashcards. What would you like to do?


  1. Javascript data validation
    Data is verified at the client-machine level before the data stream is sent to server
  2. Reasons for JavaSript (shortcomings of HTML) (5)
    • 1. Conditional statements
    • 2. Test info (validation)
    • 3. Perform interations (loops)
    • 4. Gather info about user, computer, etc.
    • 5. React to events (mouse clicks)
  3. Script
    Short computer program usually placed within a construct (HTML).
  4. JavaScript is (4)
    • 1. programming language
    • 2. client-side tool (users can see code)
    • 3. Embedded within HTML page
    • 4. case-sensitive
  5. JavaScrip is not (3)
    • 1. Not java
    • 2. Not HTML
    • 3. NOt Server side
  6. JavaScript used to be called
    ECMAscript
  7. Comment single line
    //
  8. Multi-line comment
    "/* Text */"
  9. Arithmetic Operators (two types)
    • 1. Unary operators - interact with only one variable
    • 2. Binary operators - interact with multiple variables
  10. Arithmetic Operator - %
    Returns remainder
  11. Assignment Operator

    *= ; /= ; +=
    a=a*b ; a = a/b ; a = a+b
  12. JavaScript Block
    Set of lines of code that is meant to be executed together (put in {} brackets)
  13. Test for equality
    ==
  14. !=
    Not equals to
  15. Current day stored in this variable
    daynum
  16. Conditional Operator
    variable = (condition ? if_true : if_false).

    If then statement in one line
  17. Three looping statements
    • 1. While
    • 2. Do...while
    • 3. For
  18. While Loop
    Pretest loop - condition tested before the loop is run
  19. do..while loop
    Postest loop - condition tested at end of loop
  20. For loop (3 pieces)
    • Pretest loop
    • 1. Initialization - initiliaze variables or call functions
    • 2. Condition - test a value during each iteration of the loop
    • 3. Iteration - execute one or several commands during each iteration of the loop
  21. Break statement
    exits out of current loop
  22. Create infinate loop
    (true)
  23. Continue statement
    skip rest of lines in a loop until the end of the loop
  24. Types of arrays
    Condensed, literal
  25. Object - Document
    web page user is viewing
  26. Object - date
    date manipulation
  27. Object - string
    string manipulation
  28. object - math
    math.round(), math.max()
  29. Attributes
    properties of object that can be changed (bg color for document object)
  30. Methods
    Functions that always contain arguments (have parenthasis)
  31. innerhtml
    replace html in webpage
  32. document.write outside of function
    adds html to desktop

What would you like to do?

Home > Flashcards > Print Preview