Prog270 011414

Elvenware Logo

TOC

Week02

Here are a couple projects we can work on in class. If you don't have time to finish them in class, try to get them as soon as you can. I will, however, note the date of your submission.

Project01

Optional (for now):

Project02

Some hints on how to create the function:

var MyFunc = function() {

    var name = 'sam';

    this.sayName = function() {
        console.log(name);
    };
};

var myFunc = new MyFunc();
myFunc.sayName();

You will need to call new in your tests:

it ("can create milesFunction", function() {
    expect(new milesFunction()).toBeTruthy();
});