SzabiSch / bootcamp-schedule

0 stars 0 forks source link

Intro to Programming with P5: Random Comets #60

Open codingbootcampseu opened 3 years ago

codingbootcampseu commented 3 years ago

Use the sketch from the previous task.

Hints

function createRandomComet() {
  let newComet = { x: random(..., ...), ... };
  return newComet;
}

Not all keys must be created upon object creation.

// Create empty object
let newComet = {};

// Create keys / properties afterwards
newComet.x = 0;
newComet.y = 0;

Example Solution