Skip to content

Commit

Permalink
Review: Lesson 8 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogmel authored Nov 29, 2024
1 parent 54c7cbb commit 2974a1a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lesson08.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,17 +149,14 @@ let book = {
};
```

---

### Objects: examples

```js
let car = {
make: 'Volkswagen',
model: 'Golf',
modelYear: 2005,
};
```
<!-- .element: class="fragment" -->

---

Expand Down Expand Up @@ -240,7 +237,7 @@ let car = {
console.log('The car has ' + car.wheels + ' wheels');
```

* What's the result?
* What's the output in the console?

```js
The car has undefined wheels
Expand Down Expand Up @@ -338,7 +335,7 @@ You've been using objects and methods this whole time!

---

### Task: part 1
### Task 1

Start with the `myInfo` object you created in the earlier task that contains your name and favorite food.

Expand All @@ -353,7 +350,7 @@ introducePerson(myInfo);

---

### Task: part 2
### Task 2

Now create another object called `friendInfo` with the same properties as `myInfo`.

Expand All @@ -368,7 +365,7 @@ introducePerson(friendInfo);

---

### Task: part 3
### Task 3

Create a function that takes two "person" objects. Compare their ages, then use `console.log` to print who is older of the two.

Expand Down

0 comments on commit 2974a1a

Please sign in to comment.