Introduction to JavaScript Fall 2011 Class 3

esse quam videri
Jump to: navigation, search

Back to Introduction to JavaScript Fall 2011

Lecture

If/Else Switch statement

if/else

switch

Functions

functions

DOM properties and Methods

DOM Methods & Properties

Alternate source for DOM Methods and Properties

adding and removing classes

javascript css styles

sending functions arguments

 var first = 10;
 var second = 30;
 
 function addition(someNumber, anotherNumber){
 	return someNumber + anotherNumber;
 }
 
 sum = addition(first, second);

event details and the this variable

 document.getElementById('anchor').onclick = function(e){
 	e.preventDefault();
 	console.log(this.href)
 }

Homework

In-Class 4

In-Class 4 details

Assignment 3

Assignment 3 details

Proposal for Project 1

Project 1 details