Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| en:modul:m291:learningunits:lu06:loesungen:01 [2025/04/25 11:06] – angelegt vdemir | en:modul:m291:learningunits:lu06:loesungen:01 [2025/05/04 11:30] (aktuell) – vdemir | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== LU06.S01 - events | + | ====== LU06.S01 - Events - introductory example |
| ===== Sourcecode of the solution ===== | ===== Sourcecode of the solution ===== | ||
| - | {{ : | + | {{ : |
| - | ===== Assignment 1 ====== | + | ===== Assignments |
| - Test the code example provided to you. Describe the behaviour of the script using HTML comments. | - Test the code example provided to you. Describe the behaviour of the script using HTML comments. | ||
| - Which 3 lines of code are the core for incrementing the counter? Identify these and comment on them in a meaningful way. | - Which 3 lines of code are the core for incrementing the counter? Identify these and comment on them in a meaningful way. | ||
| - Change the increment of the counter to 2, i.e. it should count up in steps of 2. | - Change the increment of the counter to 2, i.e. it should count up in steps of 2. | ||
| - | |||
| - | Your solution is supposed to look like the following image: | ||
| - | {{: | ||
| - | |||
| - | ===== Sourcecode of the solution ===== | ||
| - | |||
| - | |||
| - | ===== Assignment 2 ===== | ||
| - Establish in your webstorm-editor a new directory and name it **06_events**. Safe the script in this directory. | - Establish in your webstorm-editor a new directory and name it **06_events**. Safe the script in this directory. | ||
| - To make sure, that the moose is visible as well, safe the image of the image in the media-directory in webstorm | - To make sure, that the moose is visible as well, safe the image of the image in the media-directory in webstorm | ||
| - Adjust in your script the path to the moose-image in order to make it visible again. | - Adjust in your script the path to the moose-image in order to make it visible again. | ||
| + | Your solution should look like as follows displayed | ||
| + | {{: | ||
| + | {{: | ||
| ===== Vocabulary ===== | ===== Vocabulary ===== | ||
| ^ English ^ German ^ | ^ English ^ German ^ | ||
| | ... | ... | | | ... | ... | | ||
| - | |||
| ---- | ---- | ||
| [[https:// | [[https:// | ||