Color Ghost

1
2
3
4
5
6
7
8
var Ghost = function() {
var colors = ["white", "yellow", "purple", "red"]
var randomNum = Math.floor(Math.random() * 4)
this.color = colors[randomNum]
};