Lab #4 Reflection Journal

Web Client Programming

            In this lab we created a ninja containing many properties of itself such as its name, gender, belt color, etc.. In order to create these properties and add them to the variable which is ninja we used objects. Objects are basically a way to give different properties to your variable and later on you can call the different properties by just using the syntax: Object_name.property_name; After creating my ninja and giving it properties using objects I moved on to make the ninja do some specific actions by using functions.

            After creating the ninja I then created 3 buttons each one assigned a different function in the onClick tag. Instead of creating a regular function for our ninja's buttons we had to create the functions inside the objects this is known as the concept called methods. By utilizing methods I was able to create functions that allow the ninja to do things such as kick, punch, and block. This is basically all that lab 4 was about. It is important to Web Design because it basically gave us a refresher on JavaScript so we can know how to utilize it in our own work when we create websites and etc.. to attract future clients.



Comments