To Lecture Notes

IT 238 -- Feb 10, 2025

Classes

Project 3

Review Exercises

  1. What is the difference between an object and a class?
  2. In the methods for a class, which reference variable do you use to access the properties of the same class?
  3. What is the constructor for a class?
  4. Look at the W3Schools Examples for the Array slice and splice methods:
    www.w3schools.com/jsref/jsref_slice_array.asp
    www.w3schools.com/jsref/jsref_splice.asp
  5. Look at the Lotto class in lotto.js. See how the splice method is used to randomly select the lotto balls.
  6. For the DiceGame Example and Project 3, explain the difference between the HTML image element and the image file that is displayed.

Practice Quiz

HTML Controls

HTML Events

blur  change  click  dblclick  focus  keydown  keypress  keyup  load
mousedown  mouseenter  mouseleave  mousemove  mouseup  resize  scroll  
select  wheel

HTML Events (W3Schools)

Practice Problems and Examples

  1. When would you prefer to use <button> instead of <input> for a button?
  2. Look at this Controls Example:
    Web Page    Source Code

Event Object Properties and Methods

Practice Problem