U Of W Logo

ACS 2909-051

3D01
Dan Slack
3C07

January 30th, 2018 11:59 pm
February 27th, 2018 6:00 pm
February 13th, 2018 11:59:59 pm
April 10th, 2018 6:00 pm (Tentative)
March 13th, 2018 11:59:59 pm
April 3rd, 2018 11:59:59 pm

Exercises

Write a JavaScript function called refreshData. This function should make a new JSONP request
every time it is called. The URL of the web service is http://timeServiceAPI.com. This service
should call a function called displayUpdate. Be sure the browser does not cache the result of the web
service.
Take the following code and convert it into a Module, using the module pattern.
  1. It should have 3 “public” functions, bark, getDetails, addNewLove
  2. addNewLove should push on a new string that the dog loves
  3. All properties should be “private”
Convert the Module into the Revealing module
var fido = {
	name: 'Fido',
	weight: 40,
	breed: 'Mixed',
	loves: ['walks', 'fetching balls'],
	bark: function() {
		console.log('Woof woof!');
	},
	getDetails: function() {
		console.log(“My name is “+fido.name+” and I am “+fido.weight+” pounds.  
			I am a “+fido.breed+” breed and I love “+fido.loves.join(‘,’));
	}	
};

Apr. 3, 2018

Lecture 12 posted - final review, questions, future stuff

Mar. 26, 2018

Lecture 11 posted. Finishing up Design Patterns

Mar. 20, 2018

Lecture 10 posted.

Mar. 12, 2018

Lecture 9 posted.

Mar. 6, 2018

Lecture 8 posted!

Feb. 27, 2018

Lecture 7 posted

Feb. 13, 2018

Lecture 6 posted

Feb. 6, 2018

Lecture 5 posted

Jan. 30, 2018

Lecture 4 posted

Jan. 23, 2018

Lecture 3 posted, we will discuss Events and Prototypes

Jan. 16, 2018

Assignment 1 posted, and Lecture 2 posted.

Jan. 8, 2018

Lecture 1 posted