Homework 5, Year 2

Have these done by next class.

Web development is a field that develops rapidly, and you will be expected
to teach yourself a lot. Learning how to research things you don't understand
is critical because it's impossible to know everything about web development.
The best developers are good at googling things and know how to learn on their own.

For the basics of HTML that we went over in class, you can use this video as a reference.

If you don't like the video, W3 schools offers a decent tutorial on HTML as well as CSS and JS.

Web Project

1.) Your first task is to create a blank website. Start by creating
a folder with the following files :
index.html
style.css
script.js

2.) Fill in the html file with necessary code so that you have a
page with a header, three paragraphs, and button. The button should say "push me".

3.) Link the css file and javascript file to the html file.

4.) Modify the css file so that each paragraph is a different color.

5.) Create a JSON object in the javascript file with the following attributes :
x should equal 106
name should equal "Test"
z should equal a function that always returns 100

6.) Use document.write or console.log to test to make sure the JSON object works.
Print out all the properties of the object and make sure the function z works.

7.) Create a function called createObject that takes in two parameters, x and y.
The function should return a JSON object with the the following properties :
'a' should equal x times 15.
'b' should equal the sum of all numbers between 0 and y