Thursday, March 19, 2015

Class 8: FINAL PREPARATION: Learning the basics of JavaScript


For this assignment, we learned the basics of JavaScript.  Using the website khanacademy.org, we are introduced to a wonderful young woman who insures us that even though writing code sounds intimidating, it's not as difficult as it seems.  The entire lesson, although very time-consuming, keeps you interested by periodic exercises and quizzes. 

These first 2 screenshots are both part of the intro to how the website works, and what to expect in terms of basics. 

 One of the first exercises is programming basic shapes.  Although this is about as easy as easy can get in the world of programming, it was rewarding doing it for one of the first times and seeing a finished product!
 In this exercise, we are asked to change the background of the photo, which had been red, to blue, and also remove the outlines of the sun and clouds in the picture.  Success!
 Variables, as mentioned by the nice lady from the website, are basically like putting a label on a big bucket, but putting all different items in that bucket.  In other words,, once a variable is entered for a line of code, all following lines corresponding will have the same parameters automatically, without having to re-enter the code each time.
As you can imagine, the animation lesson teaches us how to make a simple animation with code.  In the past, hundreds and thousands of drawings or slides would be spliced together.  However, now we can enter code so that our image appears to be moving!
Here is another one of the fun challenges the website uses to get us acquainted with Java skills.  For this exercise, we had to adjust the variable of the PUPILS of this bear to be in sync with the variables for the eyes themselves.


I am going to finish my lessons on khan after this, I am submitting what I have done so far.  I will post the rest when I have a chance to finish.

No comments:

Post a Comment