Basic JavaScript Exercises

Current Counter: 0


1pt: Simple Functions

When the 'increase' button is clicked, increment the counter above.
When the 'decrease' button is clicked, decrement the counter above.


1pt: Simple For Loop

When this button is clicked, display in the designated area below
every number from 0 up to and including the counter above.

Result:


1pt: Repetition with Condition

When this button is clicked, display in the designated area below
all odd numbers from 1 to the counter above.

Result:


1pt: Arrays

When this button is clicked, add every multiple of 5 up to the counter (above)
to an array in reverse order. Then print the array to console.
NOTE: print the array itself, not the contents of the array.
If the number is < 5, then it should print an empty array


2pts: Objects and Form Fields






2pts: Objects and Form Fields pt. 2

When either of these buttons are clicked,
load the data from the car objects found in the footer of this HTML
into the form above.


2pt: Changing Styles

When either of these buttons are clicked,
the text color of this paragraph (and only this paragraph) should change
to the color described by the button text.