Due Date: optional

Assignment 4

In this next step, we will be learning about:

Following the instructions provided within the link...

  1. Within a javascript file, create an example of a number variable, a string variable, an expression, an array, and an object.
  2. Please add a comment to explain what is happening in your own words.

The most simple building block of any language is the variable. Understanding them is essential for moving forward in programming.

Note: In general with most errors, if you copy the stack trace and put it in google you can most often reason your way out of it.

Save the html file containing the javascript as: '1_4.js'.


Assignment 5

In this next step, we will be learning about:

Math is used often in programming, so it's details are useful to know. Regardless of your opinion of it, it is the cornerstone of the calculation based processes that run our world.

Following the instructions provided within the link...

  1. Create a text element that changes it's text back and forth based on a boolean variable triggered by a button click.
  2. Please add a comment to explain what is happening in your own words.

Save the file(s) with the prefix '1_5'.


Assignment 6

In this next step, we will be learning about:

Strings are what text is called in programming. This is the essential technology that we use to communicate, and the web is a largely text-based medium. Therefore it is truly essential that we have control over the words within this system. Almost all programs use text in some form.

Following the instructions provided within the link...

  1. Create an input dialog that asks for your favorite color and returns 'my favorite color is blue as well!' if the response returned is the string 'blue'.
  2. Please add a comment to explain what is happening in your own words.

Save the file(s) with the prefix '1_6'.