Dies ist eine alte Version des Dokuments!


LU07.A03 - Methods with several arguments

  • Work type: Individual
  • Means of aid: only teaching materials, no websearch, no use of ai.
  • Timeframe: 15 Minutes
  • Expected result: A Vue-Script, which uses methods to display messages on the screen and increments and decrements a counter.
  1. Implementing VUE methods by using arguments.
  2. Increment and decrement a counter within a method.
  3. Writing own methods and making use of them.
  • 01: Test the code example above which was provided to you. Describe the behaviour of the script using HTML comments.
  • 02: Make sure that everthing is working correctly: When clicking on the tiger image there must appear a text below the image „Hello, tiger“.
  • 03: Make sure that you have the title <h1> and have correctly named the file: lu07.s0s.html
  • 04: : You need to wo more animals to the list and greet them correspondingly to the provided example.
  • Save 2 more pictures of animals in the media-directory
  • Extend the arguments in myMethod(e, msg, opp)
  • Process the additional opp in the method.
  • Finnaly adjust the calling of the method at the pictures
English German
corresponding number of times entsprechend oft
to increment erhöhen, hochzählen
to decrement vermindern, herunterzählen
thus somit, dadurch

Volkan Demir

  • en/modul/m291/learningunits/lu07/aufgaben/03.1747560690.txt.gz
  • Zuletzt geändert: 2025/05/18 11:31
  • von vdemir