The final will be closed note, book, friend, and computer. Test questions can be short answer, multiple choice, fill in the blank, true/false, and matching. Expect to write code on tests
The final is cumulative, so any material from the midterm can also show up on the final. However these topics should help you focus your studying.
Note: On these tests there's a "pretend" function called
show() that works just like
- Primitive Data Types
- Convert strings to numbers
- Declaring functions
- How to invoke a function
- Return statements
- Variable scope
- Object literals
- When to quote property names
- . vs [ ] syntax for property access
- setting the value of a property
- creating a new property on an object
- be able to write a for in loop
- array literal syntax
- be able to loop over an array
- length property
- understand the common array methods: push, pop, join.
- for loops
- while loops
- if/else statements
- Three different forms of the constructor (specifically how to create a "now" date).
- How to tell the difference between two dates.
- getMonth(), getDay(), getFullYear()
Custom Object Types
- What is a constructor?
- What is a prototype?
- What is
Document Object Model
- Structure of DOM elements and how they correspond to the web page.
- Changing DOM element styles, class names, and attributes (like "src" or "href").
- Adding an event listener to a DOM element.
- Preventing the web browser from following links, or submitting forms.
- Getting a jQuery object that represents part of a page
- Getting values from form fields
- Adding event listeners