Permalink
Browse files

This is the constructor of the Bus class.

Every Bus instance will have a number defining its route.
Every bus will have an array of BusStops for defining its route too.
  • Loading branch information...
1 parent 966368c commit 08d0b8bb3f6a4e1118315b82b09ed04deb51889e @emreoztunc committed Jul 25, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 iett/index.html
View
@@ -15,7 +15,8 @@
BusStop.prototype.whereIsTheBus=function(){};
- var Bus = function(){
+ var Bus = function(busNo){
+ this.busNo=busNo;
this.route=[];
};

0 comments on commit 08d0b8b

Please sign in to comment.