repl.it
@PacoTaco/

FrontPoshAmoeba

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function Game(genre,name,numPlayer,popularity,stars){
  this.genre = genre;
  this.name = name;
  this.numPlayer = numPlayer;
  this.popularity = popularity;
  this.stars = stars;

 
  

  this.toString = function(){
    var isPopular;
    if (this.popularity == true)
    {
      isPopular = "popular";
    }
    else
    {
      isPopular = "not popular";
    }

    console.log(this.name + " is a " + this.genre + " that is played ,and is a" + this.numPlayer + "people and is rated" + this.stars  + "out of 5 game that is" + isPopular);
  }
}

var oberwach = ("shooter","bloberwatch",2,false,0);
oberwach.toString()
Native Browser JavaScript
?