Programming: Part 1: A Method of Creating Reusable Code
Similar code is put into a single function to be called by two uses. In this example, two push buttons are needed to be read (evaluated) and a set code needs to be executed when each of these push buttons are pressed and released. Since these two push buttons will perform similar actions, the code is taken into a single function to be called by each of these push button conditions. Array is used in this code.
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.