Friday, March 25, 2016

Week 4

Today, I learned about booleans, which are sets of code in a program that can only be 2 values (for example, true and false). Through what I have learned, I was able to create a number analyzer, which, depending on the number you type, will determine if the number you chose is a positive, a negative, or zero. If you would like to check it out, I've posted the link below:
https://www.khanacademy.org/computer-programming/spin-off-of-challenge-number-analyzer/3768107254
Type the number you want after the equal sign in the statement var theNumber = at the top. Replace the zero with any number

Friday, March 11, 2016

Week 3

This week, I learned how to use if statements in JavaScript. To create an if statement, you state a certain condition in a program, and if that condition is met, then a specific task will be performed.
Using if statement, I was able to create an interactive painting program. If you would like to view it, copy and paste the following link into your search bar:
https://www.khanacademy.org/computer-programming/spin-off-of-challenge-your-first-painting-app/3339986300
To paint, you just hold the mouse clicker and drag the small circle across the screen.

Friday, March 4, 2016

Week 2

Today, I learned about functions. Functions are pretty much a part of a program that performs a specific task, such as drawing a shame or figure. Today, I used functions to draw an interactive picture of a fish tank, where every time you click the screen, a new, unique fish appears. If you would like to view it, copy and paste the link below:
https://www.khanacademy.org/computer-programming/spin-off-of-project-fish-tank/3029936482

Just like last time, press restart to clear the drawing!