Saving your work
Save as... to save the empty
in your Computer Programming 12 directory.
Use arrays and
for...in loops to create rainbow.
Behold! The magical power of light!
Or change it up into a series of
Behold! The other, very similar power of light!
Or stagger the
style="position: relative; top: ???px;"
Behold! An awesome staircase of light!
id="outputId"in the body of your code
Create a button that will trigger
- Initialize your rainbow array
Create an output function that will insert a result into
Create a process function that uses
for...inloops to create a list
Use inline styles to add the background colour:
<li style='background-color: red;'></li>
mainProcedurefunction that will pass the rainbow array to your process function, and then pass the results to your output function
forloops for more info