Skip to content

Commit

Permalink
Review: Lesson 7 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogmel authored Nov 29, 2024
1 parent 109049d commit 54c7cbb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lesson07.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ What do we see on the console?

```js
console.log(42);

let x = 42;

console.log(x);

function y() { return 42; }

console.log(y());
```

Expand Down Expand Up @@ -109,7 +113,9 @@ Let's create a webpage with three buttons, "red", "green", "blue".

When you press the button, set `document.body.style.backgroundColor` to that color.

BONUS:
---

### Task 1 - Bonus

* When the color is already set to that color, set it back to empty string.
* Solve the task with only one single `function` and one single `if/else` statement.
Expand Down Expand Up @@ -146,7 +152,7 @@ function randomMove() {

---

### Bonus Bonus Task 4
### Task 3 - Bonus

Write to console how many times you won, lost, and tied.

Expand Down Expand Up @@ -192,6 +198,7 @@ JavaScript:

```js
let clickCount = 0;

function count() {
clickCount += 1;
console.log("You clicked " + clickCount + " times");
Expand Down

0 comments on commit 54c7cbb

Please sign in to comment.