[code:lit]
class bike {
constructor(price, owner) {
this.price = price;
this.owner = owner;
}
}
class nigger {
constructor(name, money, conviction, inventory) {
this.name = name;
this.money = money;
this.conviction = conviction;
this.inventory = [...inventory]
}
steal(thing) {
this.inventory.push(thing);
thing.owner =
this.name;
}
}
const newBike = new bike(1000, "Kyle");
const tyrone = new nigger("Tyrone", 0, true, "weed");
tyrone.steal(newBike);
[/code:lit]