1. Brief Table of Contents (Not Yet Final)
  2. 1. A Quick Dip into Javascript: Getting your Feet Wet
    1. The way JavaScript works
    2. How you’re going to write JavaScript
    3. How to get JavaScript into your page
    4. A little test drive
    5. JavaScript, you’ve come a long way...
    6. How to make a statement
    7. Variables and values
    8. Constants, another kind of variable
    9. Back away from that keyboard!
    10. Express yourself
    11. Doing things more than once
    12. How the while loop works
    13. Making decisions with JavaScript
    14. And, when you need to make LOTS of decisions
    15. Reach out and communicate with your user
      1. Create an alert
      2. Write directly into your document
      3. Use the console
      4. Directly manipulate your document
    16. A closer look at console.log
    17. Opening the console
    18. Coding a Serious JavaScript Application
    19. How do I add code to my page? (let me count the ways)
    20. We’re going to have to separate you two
    21. JavaScript cross
    22. JavaScript cross Solution
  3. 2. Writing Real Code: Going Further
    1. Let’s build a Battleship game
    2. Our first attempt...
      1. ... a simplified Battleship
    3. First, a high-level design
    4. A few more details...
      1. Representing the ships
      2. Getting user input
      3. Displaying the results
    5. Working through the Pseudocode
    6. Oh, before we go any further, don’t forget the HTML!
    7. Writing the Simple Battleship code
    8. Now let’s write the game logic
    9. Step One: setting up the loop, getting some input
    10. How prompt works
    11. Checking the user’s guess
    12. So, do we have a hit?
    13. Adding the hit detection code
    14. Hey, you sank my battleship!
    15. Provide some post-game analysis
    16. And that completes the logic!
    17. Doing a little Qualit y Assurance
    18. Can we talk about your verbosit y...
    19. Finishing the Simple Battleship game
    20. How to assign random locations
    21. The recipe for generating a random number
    22. Back to do a little more QA
    23. Congrats on your first true JavaScript program, and a short word about reusing code
    24. JavaScript cross
    25. JavaScript cross Solution
  4. About the Authors