Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review: Lesson 10 #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
10 changes: 6 additions & 4 deletions lesson10.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Basic button with click handler:
<button onclick="handleButtonClick()">Click me!</button>
```

In javascript:
In Javascript:

```js
function handleButtonClick() {
Expand All @@ -24,9 +24,11 @@ function handleButtonClick() {

---

### Recap: DOM object
### Recap - In other words: DOM object
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not so sure about this, in other words?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't say DOM especifically anywhere before and we should either say it's a new thing, or say we were already using it before, but not using its official name.
That's why I've added "in other words", but we could simply remove "Recap":

### DOM object

Copy link
Collaborator Author

@yogmel yogmel Nov 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just checked lesson 9, and I think it's ok to leave with "Recap" as well as the newly added little description :) wdyt?


`document.body` is an object, we can change the (CSS) style properties of it:
DOM stands for **Document Object Model**, and it is what we have been using to manipulate HTML in Javascript.

`document.body` is an object and we can change the (CSS) style properties of it:

```js
// change the page background color:
Expand Down Expand Up @@ -89,7 +91,7 @@ You are tasked with creating a basic calculator application that can perform add

Provide two input fields for operands (Operand 1 and Operand 2), a dropdown menu for the operator (+ and -), a "Calculate" button, and a div element for displaying the result.

When the user clicks the "Calculate" button, retrieve the values from the input fields and the selected operator from the dropdown menu.
When the user clicks the "Calculate" button, retrieve the values from the input fields and the selected operator from the dropdown menu. >>

---

Expand Down