CIT 261 Proficiency Check - Loops, Conditional Statements, Functions, Variables, Parameters, Arrays, Associative Arrays

Simple Loop

The for loop below is run using a function on an array including every letter in the alphabet.

Conditional Statements

When a button is pressed below, I pass the id of the button through to the function to determine which number is shown in the div below.

Associative Arrays

The color name on the button is passed through to the function to pull the value from the associative array with the color name as the key.