Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ Edit this document to include your answers after each question. Make sure to lea

Follow these steps to set up and work on your project:

- [ ] Create a forked copy of this project.
- [ ] Add PM as collaborator on Github.
- [ ] Clone your OWN version of Repo (Not Lambda's by mistake!).
- [ ] Create a new Branch on the clone: git checkout -b `<firstName-lastName>`.
- [ ] Create a pull request before you start working on the project requirements. You will continuously push your updates throughout the project.
- [ ] You are now ready to build this project with your preferred IDE
- [ ] Implement the project on your Branch, committing changes regularly.
- [ ] Push commits: git push origin `<firstName-lastName>`.
- [x] Create a forked copy of this project.
- [x] Add PM as collaborator on Github.
- [x] Clone your OWN version of Repo (Not Lambda's by mistake!).
- [x] Create a new Branch on the clone: git checkout -b `<firstName-lastName>`.
- [x] Create a pull request before you start working on the project requirements. You will continuously push your updates throughout the project.
- [x] You are now ready to build this project with your preferred IDE
- [x] Implement the project on your Branch, committing changes regularly.
- [x] Push commits: git push origin `<firstName-lastName>`.

Follow these steps for completing your project:

- [ ] Submit a Pull-Request to merge <firstName-lastName> Branch into master (student's Repo).
- [ ] Add your Project Manager as a Reviewer on the Pull-request
- [ ] PM then will count the HW as done by merging the branch back into master.
- [x] Submit a Pull-Request to merge <firstName-lastName> Branch into master (student's Repo).
- [x] Add your Project Manager as a Reviewer on the Pull-request
- [x] PM then will count the HW as done by merging the branch back into master.


## Minimum Viable Product
Expand Down
41 changes: 36 additions & 5 deletions challenges/objects-arrays.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,59 @@
*/

// tyrannosaurus, carnivorous, 7000kg, 12m, Late Cretaceious
const tyrannosaurus = {
name: 'Tyrannosaurus',
diet: 'carnivorous',
weight: '7000kg',
length: '12m',
period: 'Late Cretaceious',
rawr: () => {
return 'RAWERSRARARWERSARARARRRR!';
}
}

console.log(tyrannosaurus);

// stegosaurus, herbivorous, 2000kg, 9m, Late Jurassic
const stegosaurus = {
name: 'Stegosaurus',
diet: 'herbivorous',
weight: '2000kg',
length: '9m',
period: 'Late Jurassic',
}

console.log(stegosaurus);

// velociraptor, carnivorous, 15kg, 1.8m, Late Cretaceious
const velociraptor = {
name: 'Velociraptor',
diet: 'carnivorous',
weight: '15kg',
length: '1.8m',
period: 'Late Cretaceious',
}

console.log(velociraptor);

// Using your dinosaur objects, log answers to these questions:


// How much did tyrannosaurus weigh?
console.log();
console.log(tyrannosaurus.weight);

// What was the diet of a velociraptor?
console.log();
console.log(velociraptor.weight);

// How long was a stegosaurus?
console.log();
console.log(stegosaurus.length);

// What time period did tyrannosaurus live in?
console.log();
console.log(tyrannosaurus.period);


// Create a new roar method for the tyrannosaurus. When called, return "RAWERSRARARWERSARARARRRR!" Log the result.
console.log();
console.log(tyrannosaurus.rawr());


// ==== Arrays ====
Expand Down