Skip to content

Instantly share code, notes, and snippets.

@melissalouie
Created May 1, 2015 15:36
Show Gist options
  • Save melissalouie/11025f746dd029841137 to your computer and use it in GitHub Desktop.
Save melissalouie/11025f746dd029841137 to your computer and use it in GitHub Desktop.
function Obj() {
this.color = "black";
this.weight_limit = "80";
this.electric = false;
this.foldable = true;
this.terrain_abilities = ['mountains', 'beach'];
this.brand = 'GE';
this.tire_color = 'Red';
this.rim_color = 'Silver';
this.tricks = function tricks() {
var wheelies = [ '360 Wheelie!', 'You fell over and broke your arm!', '180 Wheelie!', 'Oops, you fell flat on your face!']
console.log(wheelies[Math.floor(Math.random() * wheelies.length)]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment