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.
Practice Finals
- Winter 2013 (this is the one we went over in class)
- Fall 2012
Note: On these tests there's a "pretend" function called show()
that works just like console.log()
Basics
- Primitive Data Types
- Operators
- Comparisons
- Variables
- Convert strings to numbers
Functions
- Declaring functions
- Arguments
- How to invoke a function
- Return statements
- Variable scope
Objects
- 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
Arrays
- array literal syntax
- be able to loop over an array
- length property
- understand the common array methods: push, pop, join.
Loops, Branching
- for loops
- while loops
- if/else statements
Dates
- 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
this
?
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.
jQuery
- Getting a jQuery object that represents part of a page
- Getting values from form fields
- Adding event listeners