Get Programming with JavaScript - Code Listings

All of the code listings for Get Programming with JavaScript are available on JS Bin where you can interact with the code, try things out and complete extra exercises. This table of contents links to lists of urls for each chapter's listings.

  1. Part 1 – Core concepts on the console

    1. Chapter 1 – Programming, JavaScript and JS Bin
    2. Chapter 2 – Variables: storing data in your programs
    3. Chapter 3 – Objects: grouping your data
    4. Chapter 4 – Functions: code on demand
    5. Chapter 5 – Arguments: passing data to functions
    6. Chapter 6 – Return values: getting data from functions
    7. Chapter 7 – Object arguments: functions working with objects
    8. Chapter 8 – Arrays: putting data into lists
    9. Chapter 9 – Constructors: building objects with functions
    10. Chapter 10 – Bracket notation: flexible property names
  2. Part 2 – Organizing your programs

    1. Chapter 11 – Scope: hiding information
    2. Chapter 12 – Conditions: choosing code to run
    3. Chapter 13 – Modules: breaking a program into pieces
    4. Chapter 14 – Models: working with data
    5. Chapter 15 – Views: displaying data
    6. Chapter 16 – Controllers: linking models and views
  3. Part 3 - JavaScript in the browser

    1. Chapter 17 – HTML: building web pages
    2. Chapter 18 – Controls: getting user input
    3. Chapter 19 – Templates: filling placeholders with data
    4. Chapter 20 – XHR: loading data
    5. Chapter 21 – Conclusion: get programming with JavaScript
  4. Part 4 – The server, Node, Express and Socket.io
    (online extras)

    1. Chapter 22 – Node: running JavaScript outside the browser
    2. Chapter 23 – Express: building an API
    3. Chapter 24 – Polling: repeated requests with XHR
    4. Chapter 25 – Socket.IO: real-time messaging