Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 08d0b8bb3f6a4e1118315b82b09ed04deb51889e 1 parent 966368c
@emreoztunc authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  iett/index.html
View
3  iett/index.html
@@ -15,7 +15,8 @@
BusStop.prototype.whereIsTheBus=function(){};
- var Bus = function(){
+ var Bus = function(busNo){
+ this.busNo=busNo;
this.route=[];
};
Please sign in to comment.
Something went wrong with that request. Please try again.