@Marcin
@kajetanboruta
@GrzesiekG
@Malwina
@JakubM
@Dadii
@AndKaw
@Adrian
function speak(line) {
  console.log(`The ${this.type} rabbit says '${line}'`);
}
let whiteRabbit = {type: "white", speak};
let hungryRabbit = {type: "hungry", speak};
whiteRabbit.speak("Oh my ears and whiskers, " +
                  "how late it's getting!");
// → The white rabbit says 'Oh my ears and whiskers, how
//   late it's getting!'
hungryRabbit.speak("I could use a carrot right now.");
// → The hungry rabbit says 'I could use a carrot right now.'let sym = Symbol("name");class Rabbit {
  constructor(type) {
    this.type = type;
  }
  speak(line) {
    console.log(`The ${this.type} rabbit says '${line}'`);
  }
}It should take one parameter(array) which determinate live cells and store it under cells property and size which determinate grid size (eg. 10 -> 10 x 10 cells)
{ alive: false }
chars: 9634, 9632
Deadline - Środa 11.07 18:00
Exercises from this topic