|
|
|
@ -54,10 +54,6 @@ In the JS file, like in the previous exercise, get the HTML `button` element wit
|
|
|
|
|
- Set its class name to words, as defined in the CSS. |
|
|
|
|
- Use the append method to add the new div inside the torso element. |
|
|
|
|
|
|
|
|
|
### Expected result |
|
|
|
|
|
|
|
|
|
You can see an example of the expected result [here](https://youtu.be/At4BhyzMxzw) |
|
|
|
|
|
|
|
|
|
### Code Example: |
|
|
|
|
|
|
|
|
|
```js |
|
|
|
@ -88,6 +84,10 @@ const handleSpeakClick = (event) => {
|
|
|
|
|
//...Here |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### Expected result |
|
|
|
|
|
|
|
|
|
You can see an example of the expected result [here](https://youtu.be/At4BhyzMxzw) |
|
|
|
|
|
|
|
|
|
**`Prompt Example:`** |
|
|
|
|
|
|
|
|
|
- "How can I add and remove text in an element with a button click in JavaScript?" |
|
|
|
|