JavaScript is a dynamically-typed scripting language. Though JavaScript’s syntax is based on Java (and thus resembles C), the similarities are largely superficial. All major web browsers support JavaScript to enable interactive web pages. This lesson introduces JavaScript and client-side input validation.

Learning Objectives

  • Describe the uses and limitations of JavaScript
  • Implement simple functions using JavaScript
  • Perform client-side validation of user input

How to Complete this Lesson

  1. Read JavaScript basics (15–30 minutes)
  2. Complete the following lessons from HTML/JS: Making webpages interactive
    1. Get ready to make your webpages interactive (10 minutes)
    2. JS and the DOM (20 minutes)
    3. DOM access methods (30 minutes)
    4. DOM modification (30 minutes)
    5. DOM events (35 minutes)
    6. Using JS libraries in your webpage (10 minutes)
  3. Review the JavaScript examples (15 minutes)
  4. Read Client-side form validation (15–30 minutes)
  5. Complete the exercises using regular expressions (15 minutes)
  6. Optional: Watch “Wat,” an entertaining lightning talk from CodeMash 2012 (5 minutes)
  7. Start the web development programming exercise (PEX) (45 minutes)

Due

As a reminder, the following is due this lesson: