Week 02: The ABCs of Programming and JavaScript


This week will be covering the basics behind object-oriented programming and specifically looking at JavaScript. We will also be discussing how to debug your code using the JavaScript console in the browser.

Download Lecture PDF

In Class/Homework

  1. Create a simple randomly-generating mad libs webpage that has at least 3 sentences. Use arrays, variables, strings, Math.random(), document.getElementById() and textContent to complete this task. If text seems too easy try using images instead. Read Chapters 1 and 2 in the text book to help you with this task.
  2. Find at least one website that uses JavaScript in an interesting way. Email me the link and the reason why you picked it.