Dies ist eine alte Version des Dokuments!
LU06.A01 - Events - Introductory example
Prerequisites
- Work type: Individual
- Means of aid: only teaching materials, no websearch, no use of ai.
- Timeframe: 10 Minutes
- Expected result: A functional Vue script with incode-comments that explains the function of event-handling and can increment the counter by steps of 2 instead of 1.
Source
Assignment
- 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.
- Change the increment of the counter to 2, i.e. it should count up in steps of 2.